Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
 
 
Search All Tutorials
  

 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 
Struts
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

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.

  1. 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.
      
  2. Downloading Struts, Hibernate and Integrate It
    This section explains you to setup the develop workbench for our Struts Hibernate tutorial
      
  3. 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.
      
  4. Developing Hibernate Struts Plugin
    In this section we will write Hibernate Struts Plugin Java code and integrate it with the Struts.
     
  5. 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.
     
  6. Build and testing the application
    In this section we will build our Struts Hibernate Plugin Application and then test.

                         

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

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

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.