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

Why to integrate Struts-Spring-Hibernate ?

 
Abhijit Salunkhe
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe, they have expertise in Struts.
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or maybe they think that Struts is better than Spring MVC.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joachim Rohde wrote:Or maybe they think that Struts is better than Spring MVC.

Which is wrong .
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic