Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Struts2 vs Spring 3 [closed]

Does anyone know difference between Struts2 and Spring 3 MVC. I know the difference between Struts 1 and Spring 2.5, but what's the advantage Struts2 has over Spring 3 or otherwise.

I tried looking all over web, but there is no comprehensive answer anywhere.

like image 929
Vivek Avatar asked Feb 25 '11 23:02

Vivek


People also ask

Which is better Struts or spring?

Spring framework is more efficient than struts but sometimes spring framework provides complexity but in struts, everything is simple due to its easy and maintainable design. Spring framework has more functionality than struts. Spring MVC is mainly used because it is more secure and better performance.

Why is struts2 used?

Apache Struts 2 is an open-source web application framework for developing Java EE web applications. It uses and extends the Java Servlet API to encourage developers to adopt a model–view–controller (MVC) architecture.

Can we use Struts and spring together?

Spring MVC is an equivalent with Struts so you don't use them together. But it is ok to combine Struts and Spring IoC. Show activity on this post. Struts - usually provides MVC framework (most of Production support & maintenance applications are already integrated with it).


1 Answers

Struts2 is really WebWork 2 renamed as Struts2. Consider for a moment the fact that Struts essentially leveraged its own brand name to adopt WebWork as its new base, and that should suggest to you that there was at least some who felt it was very compelling -- one doesn't always throw out their own code base to start anew when they issue a sequel.

That said, I'm not going to tell you that Struts2 is better/worse than Spring 3 MVC. Bottom line is that they are definitely comparable.

If you want more details on how they compare, I suggest you check out Matt Raible's presentations in years past on this topic:

http://raibledesigns.com/rd/entry/my_comparing_jvm_web_frameworks

http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks-ApacheConUS2007.pdf

including a spreadsheet that compares several of them on various degrees:

http://spreadsheets.google.com/pub?key=0AtkkDCT2WDMXdC1HOEtnUHpCejJMbUhGeGJWUmh5dVE&hl=en&output=html

like image 86
kvista Avatar answered Oct 02 '22 14:10

kvista