wood burning stoves 2.0*
The moose likes Spring and the fly likes Which framework is better Struts or Spring? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Which framework is better Struts or Spring?" Watch "Which framework is better Struts or Spring?" New topic
Author

Which framework is better Struts or Spring?

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 147
Hi friends, can any of the experienced guys tell me about which framework is better Spring or Struts ?? I know J2EE & want to start learning a framework Thanks
Horst Stieg
Greenhorn

Joined: Oct 14, 2011
Posts: 13

What do you like better: apples or pears?

You can't compare those two!
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Spring framework is an open source application framework for the Java platform. The framework itself consists of many other modules like AOP, data access, web framework, transaction management framework and many others.
SpringMVC is a web framework that you can compare and contrast (don't you love this term? ) to Struts.
Csabba Csurja
Greenhorn

Joined: Jan 12, 2012
Posts: 12
Hi,

Spring is an Application Framework, is offers component for almost everything: database, messaging, transaction, security, aop, etc. and even mvc (suitable for webapplication)
Struts is only a WebFramework.

If you need to build a basic webapplication or you don't want to put so much effort then go for Struts (easier because it is simplier)
but if you would like to start the V8 engine and preparing for some higher requierements the go for Spring MVC.

you can find great tutorial for both technologies here!

Regards,
Csaba
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Csaba Cs. wrote:
If you need to build a basic webapplication or you don't want to put so much effort then go for Struts (easier because it is simplier)
but if you would like to start the V8 engine and preparing for some higher requierements the go for Spring MVC.

Not really accurate.
Struts 1.x reached its EOL (End of Life) phase and it is replaced by Struts2 (which it is Struts 1.x and WebWork fusion).
SpringMVC is greatly simplified since the release 2.5 and it is even easier and meaner at version 3.
Csabba Csurja
Greenhorn

Joined: Jan 12, 2012
Posts: 12
Yes, you are completly true.

If you use Annotation Driven Controller in Spring MVC then you code will look very simple and you can handle the request easly.

I am just saying, if you are a not that much experienced, then setting up Struts env. is easier and faster..., becasuse the number of the tunning/configuration possiblities are less!
 
 
subject: Which framework is better Struts or Spring?
 
Similar Threads
Is Seam Framework better framework than struts and Spring?
Web Application Framework in the FUTURE ..
Struts or Spring?
books for intermediate programmer
frameworks