This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts-Hibernate-Eclipse Tutorial Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-Hibernate-Eclipse Tutorial" Watch "Struts-Hibernate-Eclipse Tutorial" New topic
Author

Struts-Hibernate-Eclipse Tutorial

kashwini Kulkarni
Ranch Hand

Joined: Aug 07, 2009
Posts: 63
Hello ,


Can anyone suggest me a link for a tutorial showing how to integrate struts with hibernate in eclipse?
I'm aware of the files i need to create in struts as well as hibernate , I get confused when it comes to placing the files in folders.
At some places it was mentioned that hibernate.cfg.xml should be in src folder while some suggest that it should be in WEB-INF/classes folder.

I need a simple and good link for the above.





Thanks in Advance
Kashwini
Girish Wakure
Greenhorn

Joined: Apr 14, 2010
Posts: 28
try Struts 2 Hibernate Integration
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9136
    
    9

kashwini Kulkarni wrote:
At some places it was mentioned that hibernate.cfg.xml should be in src folder while some suggest that it should be in WEB-INF/classes folder.


hibernate.cfg.xml should go in the root of the classpath. After doing a build, non-source files from the the src folder and the WEB-INF/classes should be in the same place (WEB-INF/classes).

[How To Ask Questions On JavaRanch]
i am an indian
Greenhorn

Joined: Oct 06, 2011
Posts: 2
Struts Hibernate Integration Tutorial

This link better works

http://www.laliluna.de/articles/java-persistence-hibernate/struts-1-hibernate-integration-tutorial-en.html
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Struts-Hibernate-Eclipse Tutorial
 
It's not a secret anymore!