Struts2 and Hibernate both are widely used frameworks in their respective area. Today we will learn how to integrate Struts2 Web application framework with Hibernate ORM framework.
Unlike Spring Hibernate Integration, there are no plugins provided by Struts2 framework that we can use, so we would need to use the Servlet Listener to manage the Hibernate SessionFactory. Let’s see how to do this with a simple web application example.
Our final project structure will look like below image, we will look into each of the component one by one. Start with creating a “Dynamic Web Project” in Eclipse and then convert it to maven project to get the basic skeleton ready for our web application.
Check here for Details