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.
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: January 21, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles