• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-Hibernate-Eclipse Tutorial

 
kashwini Kulkarni
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try Struts 2 Hibernate Integration
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
i am an indian
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts Hibernate Integration Tutorial

This link better works

http://www.laliluna.de/articles/java-persistence-hibernate/struts-1-hibernate-integration-tutorial-en.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic