Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  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.

 

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.

                         

» View all related tutorials
Related Tags: c apache http hibernate deployment com file j2ee ant development ui process build application script software struts io cgi download

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

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.

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

Current Comments

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

Hi, I need to create an application showing users when you click in a user you will see :

Lines of roles he was granted and a link on front of each like called Revoke to delete that role.


Lines of the other roles he was not granted yet and a link in front of each line called Add, to add roles to that user.

I appreciate if you can help.

thanks.

Kamal

Posted by Kamal on Tuesday, 10.14.08 @ 03:55am | #81060

can anybody guide me how to upload a file automaitcally without user interaction in struts.

Posted by RaghuveeraReddy on Monday, 10.13.08 @ 14:38pm | #81042

Hi,

Very nice tutorial, but it's missing the databse.
thanks

Posted by Majid on Wednesday, 10.8.08 @ 21:36pm | #80966

When I put plug-in in struts-config.xml I am getting exception message Servlet action is not available. when I remove the plugin struts working fine.

Any suggestions?

Posted by Ram on Monday, 08.11.08 @ 04:33am | #72178

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

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

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

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

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

Copyright © 2008. All rights reserved.