The moose likes Spring and the fly likes Spring latest version & Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring latest version & Struts" Watch "Spring latest version & Struts" New topic

Spring latest version & Struts

pankaj vijay
Ranch Hand

Joined: Apr 01, 2008
Posts: 75
I have knowledge of struts 1 BUT no idea about struts 2. I am thinkgin to learn spring OR struts 2. I heared that struts 1 & struts 2 both are completely different products. I am little bit confuse that what should i learn Spring OR struts2.

Spring & struts 2 both are same OR both are different products???
for which version of spring i should go??
which one is good book for spring???

Please help...............

Pankaj Vijay (SCJP, SCBCD)
Learn Core Java,Learn Servlet Jsp, SCJP Questions,Struts Tutorial
David Newton

Joined: Sep 29, 2008
Posts: 12617

Spring and Struts are completely separate projects, although Spring may be used with either version of Struts. You heard correctly that Struts 1 and Struts 2 are completely different frameworks (except for the name).

For Spring I'd learn as recent a version as possible; if you want to be cutting-edge you could start learning Spring 3.0, otherwise 2.5 is a good choice.

Note that Spring includes its own MVC layer, making it unnecessary to learn Struts 2. I still prefer the way Struts 2 works compared to Spring MVC 2.5, and haven't really evaluated Spring MVC 3.0 yet. Struts 2 has a Spring plugin, however, that allows all Struts 2 objects to be created via Spring, so the integration is pretty nice.
I agree. Here's the link:
subject: Spring latest version & Struts
jQuery in Action, 3rd edition