Using Struts2 and Spring together

Discussions

EJB design: Using Struts2 and Spring together

  1. Using Struts2 and Spring together (2 messages)

    We plan to use a mix of Struts and Spring, somewhat of the best of both worlds approach, to develop a new Web application that has a heavy UI, light middle tier and lots of DB stored procedure calls. We have decided to use Sturts2 for MVC along with freemarker templates, themes, AJAX integration and validation and Spring for DAO layer, DI to the action classes and to manage the DB connectivity. Seems to be working well in the prototype phase but would like to check with the larger community if anyone else is using this approach and if you see any major potential issues with it. Thank you for your responses.
  2. In any case, your comments woould be much appreciated.
  3. We have used the same.[ Go to top ]

    We plan to use a mix of Struts and Spring, somewhat of the best of both worlds approach, to develop a new Web application that has a heavy UI, light middle tier and lots of DB stored procedure calls.
    We have decided to use Sturts2 for MVC along with freemarker templates, themes, AJAX integration and validation and Spring for DAO layer, DI to the action classes and to manage the DB connectivity.

    Seems to be working well in the prototype phase but would like to check with the larger community if anyone else is using this approach and if you see any major potential issues with it.

    Thank you for your responses.
    We have used the same, But it was webwork not struts2 (Both are almost same). We have used freemarker,webwork,spring,hibernate. Spring works best wid hibernate, and makes it very easy to use hibernate, otherwise hibernate API is some wat difficult. webwork integrates well wid spring. Here is wer we wer using spring, * for injecting dependancy in actions. * injecting dependancy in services. * for declarative transactions. * for hibernate session management ( we hav used hibernate template) * with ACEGI for managing security and authorization. * for session scoped beans. If u use hibernate, use generics wid DAOs. All this worked well, but u will find lots of configuration files, this is the only thing that u need to keep in mind. Sudhir Nimavat http://www.jyog.com