aspose file tools*
The moose likes Struts and the fly likes Why Struts 2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why Struts 2?" Watch "Why Struts 2?" New topic
Author

Why Struts 2?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
Hello,

With so many web frameworks in the market - Struts, Struts 2, Spring MVC, VRaptor, Mentaway, WebWork, etc - why would I choose Struts 2?
Which conditions would make Struts2 more attractive for me than the others?


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Well, struts 2 is the successor to struts, which gives you the option to use POJOs as you actions, instead of extending a framework specific class like in struts. It also uses dependency injection to inject servlet specific objects, which makes it easier for unit testing. It also eliminates the need for the redundant ActionForms, which is a really great thing. As for webwork, struts 2 is the new version of webwork, so they are really the same thing, but struts 2 is like the newer version, so you should use it instead of webwork.

Here, I eliminated 2 frameworks. Let's see who will compare the rest .


Visit my blog: http://jnassef.blogspot.com/
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

Matt Raible has a good presentation on this topic (slides here). The slides have pros and cons for many frameworks.
His advice boils down to: choose 2-3 frameworks that best fits your requirements and prototype. No framework is a silver bullet, but if you have some features you can't do without, that will drive the framework you use.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Struts 2?
 
Similar Threads
Using struts taglib without the framework
Struts
jQuery study materials
Struts interview questions
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope