File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Why to integrate Struts-Spring-Hibernate ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Why to integrate Struts-Spring-Hibernate ?" Watch "Why to integrate Struts-Spring-Hibernate ?" New topic

Why to integrate Struts-Spring-Hibernate ?

Abhijit Salunkhe

Joined: May 06, 2009
Posts: 5
Hi Pros,

I have seen many real time projects using integrated Struts MVC, Spring IOC and AOP, Hibernate ORM.

I can understand, the use of Hibernate for persistent layer, but I am wondering why to use Struts if we have Spring's own MVC ?

Anybody ?

Thanks in Advance,
Abhijit Salunkhe

Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Maybe, they have expertise in Struts.

SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 430

Or maybe they think that Struts is better than Spring MVC.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Joachim Rohde wrote:Or maybe they think that Struts is better than Spring MVC.

Which is wrong .
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
For one thing, Spring MVC != Spring IOC/AOP. So using Spring IOC/AOP in business tier doesn't automatically suggest Spring MVC in web tier. This question basically trying to compare Struts 2 with Spring MVC which is better left to experts of both frameworks.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Also maybe their app was already done in Struts, and they wanted to clean up their middle tier with Spring. Or maybe they started the app before Spring MVC was mature enough and chose Struts.

There are lots of valid reasons, and one answer in this case isn't necessarily right or wrong.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Why to integrate Struts-Spring-Hibernate ?
jQuery in Action, 3rd edition