I am new to Struts and Spring, I have developed a small registration application in Struts and it is working fine :D . I have also started learning Spring 2.5 and completed till Spring JDBC concept. I have succeeded in creating a standalone Spring JDBC main program which performs insert update and delete operations.
Now I want to remove all the boilerplate JBDC code from my Struts based registration application and integrate it with Spring JDBC.
Can someone please suggest me the right direction on how to implement this in Spring like how do I load the wiring information (beans.xml) into the application, how do i get the instance of the DAO Impl in the service object, what are the additional configurations I have to add in web.xml and struts-config.xml?
Dave - Thanks a lot for your response. I really do not have any supporting reason to explain you why I started with Struts 1.3.8 but I am sure that I also want to learn Struts 2. Can you suggest any nice book for that (Though this is not the relevant forum to post this)?
I will try to add the Spring DAO to my existing struts application and see if it works.
Yogesh, what application were you build using Spring...can you share the guide (web site or etc) on how to develop that? Also if you find any sample step by step practical guidance for a building Struts 2 application please post it too.
Up until Spring 3.0 I've preferred Struts 2--but that's just a personal preference. (I haven't looked at the 3.0 stuff yet, so don't have any opinion.) If you're doing greenfield development it's solely a matter of technical and/or aesthetic preference, in my opinion--I think they're both really nice.