This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

How to decide between Struts 2 and Spring framework

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can somebody tell me what factors to consider to decide whether to choose Spring framework or Struts 2 framework for designing a web application?

Torn between two frameworks ..appreciate any help...

Thanks,
Ramya.
 
Bartender
Posts: 9586
13
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can start by comparing your requirements to the features of each framework. You will probably have to do some prototyping and research. We can't really tell you which one you will like more.
 
Ranch Hand
Posts: 38
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring is NOT JUST MVC framework. if offers much more features like "Dependency Injections" etc. whereas Struts is very much used MVC framework. so overall you need to clarify your requirements, if you want JUST MVC, then go for Struts, but if you are planning to use other features and integrations with frameworks like hibernate, then you should select "Spring"


NOTE: Spring can be integrated with Struts2. but it is better to use any one of them at a time if you are new to both these frameworks.
 
Joe Ess
Bartender
Posts: 9586
13
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mahendr Shinde wrote: but if you are planning to use other features and integrations with frameworks like hibernate, then you should select "Spring"



Just so we are completely clear, it is not necessary to use Spring if one wants to use Hibernate. Struts 2 has a Hibernate Session plugin and it is always possible to manage the Hibernate session directly, just like one would in any other Java program.
 
Ramya Satish
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
Always look on the bright side of life. At least this ad is really tiny:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!