Struts Hibernate

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
Hibernate tutorial
- 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
application
In this section we will build our Struts Hibernate Plugin Application and
then test.

|
Current Comments
9 comments so far (post your own) View All Comments Latest 10 Comments:http 404 - servlet action is not available
It shows error when i click on serch button after inserting "java" string in txtbox.
I am using Oracle 10g database.
Please help me to run this application.
Posted by Yogesh Jadhav on Thursday, 10.2.08 @ 17:48pm | #80844
hi,
thx friends ...
really gr8 material .
can i send me some materail related to hibernet ..
Posted by umesh choubey on Thursday, 12.20.07 @ 19:26pm | #43124
the example is good, but depends of Hibernate. What if we want to change the mapping tool !!
regards
doxumd
Posted by doxumd on Wednesday, 11.21.07 @ 19:05pm | #38191
Hi ,
It is a good tutorial. However, the application will depends of Hibernate... what if we decide to replace Hibernate by another tool that don't use sessionFactory (like JDBC for example) !!??
regards
Doxumd
Posted by doxumd on Tuesday, 11.20.07 @ 18:18pm | #38055
thank a lot for your sharing. May I have your yahoo nick to contact quickly. Please email me if you agree.
Thank.
Regard
HuyDo
Posted by huydp on Sunday, 11.18.07 @ 18:46pm | #37747
Ya! Thank a lot for this tutorial! It's very useful for all beginers that want to study Struts and Hibernate
Again, thank you!
Regards,
Linh Nguyen.
Posted by Linh Nguyen Hong on Friday, 04.27.07 @ 09:33am | #15001
Hi, The tutorial is very helpful for the beginner who wants to know about hibernate.
Posted by umashankar on Monday, 04.9.07 @ 04:09am | #13614
it is good tutorial.
Thanks alot
Posted by Lam nguyen on Friday, 02.9.07 @ 10:43am | #6930
Hi,
This tutorail is very nice and easy to learn for beginniger. Language is easy to read and understand.
Thank's for roseindia......
Regards
bandu kank
Posted by Bandu Kank on Tuesday, 01.16.07 @ 12:47pm | #3611