• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts-Hibernate-Eclipse Tutorial

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try Struts 2 Hibernate Integration
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic