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
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
posted
0
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!
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
posted
0
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!