Share on Google+Share on Google+

Building and Testing Struts Hibernate Plugin Application

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

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.

     

Advertisements

Advertisement

Posted on: January 21, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Building and Testing Struts Hibernate Plugin Application   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:2
Ramesh
April 26, 2011
hi

how to place struts1.x configration file in Struts tiels plugin,hibernateplugin ?
Ramesh
April 26, 2011
hi

how to place struts1.x configration file in Struts tiels-plugin ,hibernate-pluginplugins?