Results 1 to 2 of 2
  1. #1
    harish21 is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default Struts with hibernate

    I had a struts project "Employee Registration Form" where i need to take the employee details from the jsp to the database using DAO and JDBC . Now I want to Implement Hibernate in this Struts project. I need help regarding how to start integrating hibernate with struts.

  2. #2
    Aseem is offline Senior Member
    Join Date
    Mar 2009
    Rep Power


    steps to integrate struts and hibernate:
    - make a table in database first.
    - make hibernate configuration file + all necessary file including the pojo class and mapping file(IDE generates it)
    (u need configuration file, mapping file, pojo class, helper class, reveng file)
    - once everything is generated, go to action class in struts
    - use session factory object in action class
    - make an object of pojo class in action class
    and perform ur database operations

Similar Threads

  1. decorator.jsp problem building Struts Menu in JSP when Struts action is used
    By dkirvan in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-29-2010, 06:33 AM
  2. Hibernate Use
    By sireesha in forum JDBC
    Replies: 2
    Last Post: 05-21-2008, 04:05 AM
  3. Database connectivity in Jave struts with Hibernate
    By sanjay_sharma77 in forum Advanced Java
    Replies: 1
    Last Post: 02-02-2008, 09:41 PM
  4. Replies: 2
    Last Post: 06-30-2007, 04:01 PM
  5. Hibernate
    By Shuru in forum JDBC
    Replies: 2
    Last Post: 05-09-2007, 06:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts