• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why Struts 2?

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic