Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SpringMVC vs. Struts

 
Silvio Esser
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a Struts developer and new to Spring.

What's the advantages of SpringMVC over Struts?

Struts has a much larger developer pool and is much maturer.
Struts has a large set of tags and supports Tiles and sub projects.
Struts2 supports AJAX.

What about SpringMVC?
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not giving it a try?
I currently working (since a few weeks) on a project with SpringMVC and I have to admit, that imo it sucks.
The provided tags are minimalistic (struts offers here much more), the documentation could be better and getting most of the time I have the feeling it's interfering me more than it helps me.
Personally I prefer Struts 2. But as I said, give it yourself a try and find out, if you like it or not.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not going to give a point-by-point comparison, but I was a long time Struts developer who switched to SpringMVC. Conceptually, the two frameworks are very similar so there was not much of a learning curve.

For me it came down to the fact that I was starting on a new project that was using Spring heavily, and when it came time to pick a webapp, there was no reason not to use SpringMVC over Struts. SpringMVC feels cleaner and more polished and I just enjoy it more than Struts. I have instructed several developers on SpringMVC and all have found it relatively easy to pick up. YMMV, but for the Spring based apps I've been working on, it's just been easiest to use SpringMVC.
 
Eric Nielsen
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I find SpringMVC a huge improvement over Struts 1.x, but find Struts 2.x or Stripes a moderate improvement over SpringMVC.
 
Matt Brown
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stup**, it is the business strategy, not the technology.

When I see so many similar open source frameworks in Java, it reminds me the
Visual J++ from M$.

M$ just got another record high profit. Clearly, Bill Gates is laughing...
[ February 06, 2008: Message edited by: Matt Brown ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic