This section contains the demo of how to integrate Struts2.2.1 with hibernate. You will also see that how to connect struts application to database using hibernate.
Introduction
In this demo application, a registration form is given. On successful registration, it will insert value in the database table and show the added value in the below table.
Database table schema
The database table schema is given below :
Table name : userinfo
Application flow
The application flow is shown through snap shots below :
Directory Structure

Jar file used


If form values not filled properly :

When value filled correctly it will add the value and display it into below table :

MODULES
Given below the module used in the application with its code & description :
Download The Source Code