|
From: Rod J. <rod...@in...> - 2003-06-18 22:36:21
|
I don't have time for a more detailed comparison, but here are a few points: - Spring is much more open. Absolutely everything is pluggable, althought the API is no more complex than Struts. Recently at work people have had to do really weird stuff to do Struts customization when the same could have been achieved with Spring easily. - It's view-agnostic, so you can use Velocity, XSLT/whatever as easily as JSP - It's part of a much bigger and nicely integrated whole. It builds elegantly on the bean factory/application context concept, meaning that you can build a true middle tier in the web container - You can also easily use Spring AOP etc - Like WebWork, it handles type conversion and type mismatches automatically. No ugly copying into ActionForms, which cannot be domain objects as they're forced to inherit a Struts superclass and depend on the Servlet API The only arguments I can see for Struts are: - Everyone's familiar with it - It has loads of tag libraries. This is the biggest pro. Although with JSTL standardization that's not quite as strong an argument as it used to be. If you want to use Struts, you can easily use a Spring BeanFactory to access business objects. This is a great solution if there's already familiarity with and investment in Struts. It doesn't compete with Struts in this usage, just address the many areas Struts doesn't. Regards, Rod ----- Original Message ----- From: <tri...@tr...> To: <spr...@li...> Sent: Wednesday, June 18, 2003 4:37 PM Subject: [Springframework-developer] Struts vs. Spring Opinions/Pros/Cons > All, > > Some developers at work are currently looking at using a web application > framework while developing internal web applications. One of the candidates is > obviously Struts. Since I am more of a database/middleware developer I don't > have much experience using Struts or Spring for any large scale web application > development. Could any of you guys give me some arguments or pros and cons for > using Struts vs. Spring - like ease of use, type of apps that each would be good > for etc. > > Thanks, > > Thomas > > PS. Once we realease 0.9, this type of comparison information would probably be > good to post on our web site as well. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |