On Tue, Jun 2, 2009 at 9:32 AM, alee amin <mailing.list.mail...@gmail.com> wrote: > I have been assigned a task to introduce spring in struts 2 project. I have > been novice at both technologies. Right now i am going through the project > to analyze what is actually going and i thought to get some advice from > experts sitting across the globe. > > What could be the key areas which will get effected if we introduce spring > in struts 2. What things should i look for.
There are a few different ways to introduce spring. The way I've always gotten the most bang for the buck is to take advantage of autowiring on action properties. I tend not to configure my struts actions as spring beans, I usually just roll the actions configured via the conventions plugin. Even with conventions, the actions can still be autowired by name. This way, my Struts stays very Struts-y and I have fine-grained control over the service layer through Spring configuration. I find it to be a good balance of configuring what I want to be configurable and utilizing a Conventions over Configuration approach where it makes sense to me. Of course, YMMV depending on the size / scope of the project. > > > P.S: > The project is simple CRUD application. Which is using Struts2, JPA and > Hibernate. > > ..alee > http://techboard.wordpress.com > -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org