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.

|
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