This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 and hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 and hibernate" Watch "Struts2 and hibernate" New topic

Struts2 and hibernate

Abhi Agar

Joined: Jun 15, 2010
Posts: 26

What should one go for while integerating Hibernate and Struts2?

Should one use spring to inject dependencies? Or is there a bare way to use Hibernate with Struts2?

Just wanted some light on the topic.

Thanks in advance.

It's the belief in the power of your dreams that counts! (SCJP 5.0, SCWCD 5.0)
David Newton

Joined: Sep 29, 2008
Posts: 12617

*I'd* use Spring, but you can code raw Hibernate as well, following something similar to any of the common HibernateUtil patterns around.
I agree. Here's the link:
subject: Struts2 and hibernate
It's not a secret anymore!