Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which framework is better Struts or Spring?

 
shivang sarawagi
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you like better: apples or pears?

You can't compare those two!
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic