Learn how to integrate Struts Hibernate and make a project.
Hibernate is Object-Oriented mapping tool that maps the object view of data
into relational database and provides efficient persistence services such as
create, read, update and delete (CRUD).
In this tutorial we will implement small search engine application that shows
a search form to the user. User enters search string and presses search button.
Struts framework process the request and passes it to the action for further
processing. Action class uses Hibernate to make database calls and retrieves
matching records from database and results are displayed to the user.
Full example code is provided with the tutorial and you can download and
start working on it for your project or to learn Struts and Hibernate
Integration. You can download the
source code from here.
- Setting up MySQL Database and table
This section describes how to setup database and populate it with
the data. We are using MySQL Database for this tutorial.
- Downloading Struts, Hibernate and Integrate It
This section explains you to setup the develop workbench for our Struts
- Writing Hibernate configuration
file, POJO class and Tutorial.hbm.xml (Hibernate mapping class)
In this section we will write required hibernate objects like configuration
files and then integrate all the stuffs.
- Developing Hibernate Struts Plugin
In this section we will write Hibernate Struts Plugin Java code and
integrate it with the Struts.
- Writing Web Client to Search the database using Struts Hibernate Plugin
In this section we will write web client to test struts Plugin. We will be
developing a search form to search the tutorials from the table.
- Build and testing the
In this section we will build our Struts Hibernate Plugin Application and