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.
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