{"id":206,"date":"2007-09-06T00:00:00","date_gmt":"2007-09-06T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=206"},"modified":"2007-09-06T00:00:00","modified_gmt":"2007-09-06T00:00:00","slug":"Developing Struts Web Module","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=206","title":{"rendered":"Developing Struts Web Module"},"content":{"rendered":"<p><P>In this section we will build and test our Struts Hibernate Integration application.<\/P><br \/>\n<P><B>Compiling and packaging application<\/B><\/P><br \/>\n<P>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 &#8220;<B>C:\\Struts-Hibernate-Integration\\code\\WEB-INF\\src<\/B>&#8221; directory. Then just type ant, ant will create <B>strutshibernate.war<\/B> in the &#8220;<B>C:\\Struts-Hibernate-Integration\\dist<\/B>&#8221; directory.<\/P><br \/>\n<P><B>Deploying and testing application<\/B><\/P><br \/>\n<P>Copy <B>strutshibernate.war<\/B>&nbsp; to the <B>webapps<\/B> directory of tomcat and start tomcat server. Now open the browser and type <A href=\"http:\/\/localhost:8080\/strutshibernate\/\">http:\/\/localhost:8080\/strutshibernate\/<\/A> in the browser. You browser should look like:<\/P><br \/>\n<P><IMG height=402 src=\"http:\/\/www.roseindia.net\/struts\/struts-hibernate\/hiernate-struts-integration.gif\" width=401 border=0><\/P><br \/>\n<P>Now click on &#8220;Click here to test Search Tutorials&#8221; link.<\/P><br \/>\n<P><IMG height=380 src=\"http:\/\/www.roseindia.net\/struts\/struts-hibernate\/search-result.gif\" width=445 border=0><\/P><br \/>\n<P>Enter some search term say &#8220;java&#8221; and click on search button. You browser should display the search result as shown below.<\/P><br \/>\n<P><IMG height=496 src=\"http:\/\/www.roseindia.net\/struts\/struts-hibernate\/hibernate-struts-plugin-search-result.gif\" width=642 border=0><\/P><br \/>\n<P>Congratulations now you have successfully integrated your struts application with hibernate using Hibernate Struts Plugin.<\/P><br \/>\n<P><A href=\"http:\/\/www.strongd.net\/struts\/Struts-Hibernate-Integration.zip\">You can download the code of this application from here.<\/A><\/P><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;C:\\Struts-Hibernate-Integration\\code\\WEB-INF\\src&#8221; directory. Then just type ant, ant will &hellip; <a href=\"https:\/\/www.strongd.net\/?p=206\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Developing Struts Web Module<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-206","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=206"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}