This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2.0 and Spring!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2.0 and Spring!!" Watch "Struts 2.0 and Spring!!" New topic

Struts 2.0 and Spring!!

Tom Rader

Joined: Jan 23, 2010
Posts: 5
Hello All,

I am developing a product. I want to use Struts 2.0 with hibernate. One of my friend told me that If I am using Struts 2.0 I should also use Spring!!!

Should I use spring If yes then please specify the reason also.

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9999

It is not that if you use Struts 2.0 you should use Spring. In general Spring is considered to be used as a candidate wherein the objects that your application would need and their dependencies are managed with ease provided the richness of building a transactional, distributed computing is easily achieved using Spring. Spring offers very good integration with some well known and widely used frameworks like Hibernate, Struts, EJB, JSF and many more. What this integration mean is that you get to use those frameworks also with ease by letting Spring control them.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9999

So in my opinion, you should definitely use Spring.
subject: Struts 2.0 and Spring!!
jQuery in Action, 3rd edition