File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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
It's not a secret anymore!