This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts-Hibernate-Eclipse Tutorial

 
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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try Struts 2 Hibernate Integration
 
Bartender
Posts: 9615
16
Mac OS X Linux 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).
 
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic