• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Which framework is better Struts or Spring?

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 13
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you like better: apples or pears?

You can't compare those two!
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic