wood burning stoves 2.0*
The moose likes Struts and the fly likes How to decide between Struts 2 and Spring framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to decide between Struts 2 and Spring framework" Watch "How to decide between Struts 2 and Spring framework" New topic
Author

How to decide between Struts 2 and Spring framework

Ramya Satish
Greenhorn

Joined: May 16, 2010
Posts: 5
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

Joined: Oct 29, 2001
Posts: 8877
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Mahendr Shinde
Ranch Hand

Joined: Sep 03, 2011
Posts: 38

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.


There is still lot to learn!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8877
    
    8

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

Joined: May 16, 2010
Posts: 5
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to decide between Struts 2 and Spring framework