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

Building and Testing Struts Hibernate Plugin Application

                         

In this section we will build and test our Struts Hibernate Integration application.

Compiling and packaging application

Since we are using ant build tool, so the compiling and packaging will done by ant tool. To compile and create war file for deployment, open console and go to "C:\Struts-Hibernate-Integration\code\WEB-INF\src" directory. Then just type ant, ant will create strutshibernate.war in the "C:\Struts-Hibernate-Integration\dist" directory.

Deploying and testing application

Copy strutshibernate.war  to the webapps directory of tomcat and start tomcat server. Now open the browser and type http://localhost:8080/strutshibernate/ in the browser. You browser should look like:

Now click on "Click here to test Search Tutorials" link.

Enter some search term say "java" and click on search button. You browser should display the search result as shown below.

Congratulations now you have successfully integrated your struts application with hibernate using Hibernate Struts Plugin.

You can download the code of this application from here.

                         

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

Current Comments

10 comments so far (post your own) View All Comments Latest 10 Comments:

This example is really good and useful. Thank you for introducing me about 'hibernate' and 'ant'

Posted by Muthu on Thursday, 06.5.08 @ 10:34am | #62161

This example is fantastic, i really learnt a lot using roseindia. Great Site. Very useful to both freshers and experienced guys. Good going. All the best.

Posted by nag on Saturday, 02.16.08 @ 14:39pm | #48555

hi ,
plz send me the step by step information about how to run a jsp in struts.
thanks

Posted by Raman thakur on Thursday, 01.3.08 @ 17:55pm | #44441

i am surya request for java hibernate integration

Posted by surya on Tuesday, 10.9.07 @ 15:59pm | #32639

It is nice and helping to who want learn new technologies.
My request is please provide one example in details like screen shots how to run struts and hibernate programs on Netbean.
Thank you

Posted by Ramesh on Saturday, 08.25.07 @ 17:46pm | #24110

Hi ..
First of all thanks to this team, who were working in this module.

I knew concept of Hibernate and struts with this program only.


thanks
satya.

Posted by satya on Monday, 07.23.07 @ 17:04pm | #21775

Hi
this website is very usefull foe me , i need a help from u, i want Struts sample Application where User Aunthentication and Session timeout is done .

Thanks

Posted by Nabeel on Saturday, 02.24.07 @ 21:46pm | #9478

This fits to actual requirement of freshers and working professionals.

Posted by pramod on Monday, 01.29.07 @ 16:37pm | #4641

This is very nice tutorial, i ran this on RAD5 using oracle database and all working fine.
Thanks to Rose india.

Posted by Satya on Sunday, 12.31.06 @ 05:20am | #2291

this tutorial r very good for freshars and programmer who r new for this technology.

Posted by raghvendra bhargava on Tuesday, 12.26.06 @ 17:16pm | #2042

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

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.

Hot Web Programming Job

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

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

Copyright © 2007. All rights reserved.