top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to integrate Hibernate with Servlet or Struts2 web applications?

0 votes
400 views
How to integrate Hibernate with Servlet or Struts2 web applications?
posted May 4, 2016 by Joy Nelson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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

answer May 6, 2016 by Karthick.c
Similar Questions
+3 votes

I would like to integrate struts2 in an CRUD application , JDBC, Apache Tomcat, Netbeans (or eclipse) but without Hibernate , nor EJB, nor GlassFish.
Hibernate is more complex than the problem it tries to solve. Could you have any integration example please ?

...