Hello,
I wrote the Spring MVC plugin (and the Spring Webflow plugin) for Struts 2, so I'm familiar with both frameworks. Here are some of the advantages that I see:

* Better interceptors - the interceptors in Spring MVC are very crude and hard to configure--the interceptor architecture for struts 2 is far superior and there are many more interceptors out-of-the-box * Better datamodel support - In Spring MVC, you have to return a hashmap as the datamodel, in Struts2, the action is the datamodel which seems more intuitive to me (although it does have ModelDriven concept that emulates what Spring MVC does) * OGNL - ognl is a much richer expression language than the Spring MVC expression language--it allows you to do things that just aren't possible with other expression languages which in some cases simplify the application implementation * Better type conversion support - the type conversion support is much better--better architecture and easier to hook into. * Better tags - the UI tags that come with Struts2 will do everything you need. Spring MVC has tags for form stuff, but most people use JSTL for simple non-editable pages. * Better Java 5 support - the struts 2 codebase is Java 5 only, so they make heavy used of generics and annotations, Spring is still Java 1.4 so they can't take advantage of these language features yet.

If you'd like more examples, I'd be happy to go into more details, but that should give you a start. :) On my very long TODO list is a Spring MVC to Struts 2 migration guide--don't know if I'll ever get around to it, but if there's enough interest I can start that sooner than I originally planned.

As far as documentation, webwork had ok documentation, there were places where it was spotty. The book 'Webwork in Action' was almost required reading. (I highly recommend it) I would expect the documentation to get better as more and more projects start migrating over.
Tom

Zsolt Koppany wrote:
Hi,

What are the advantages of struts2 against spring mvc? For me they look very
similar but "spring mvc" is pretty well documented.


Zsolt


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to