This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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.
subject: Struts2 and hibernate