aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 8927
    
    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).

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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
 
Consider Paul's rocket mass heater.
 
subject: Struts-Hibernate-Eclipse Tutorial