Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to decide between Struts 2 and Spring framework

 
Ramya Satish
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.
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X 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.
 
Mahendr Shinde
Ranch Hand
Posts: 38
Eclipse IDE Java Tomcat Server
  • 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: 9279
10
Linux Mac OS X 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic