Home Struts Struts2.3.8 Struts 2 Hello World Example
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Struts 2 Hello World Example

Advertisement
Learn how to create Struts 2 Hello World Example program.
Struts 2 Hello World Example - Video Tutorial that shows how to create Hello World example program in Eclipse IDE.

In this video tutorial I will teach you how to develop 'Hello World' application in Struts 2 framework. We are developing this tutorial using the Eclipse IDE. This Struts 2 video tutorial will teach you how you can use Eclipse IDE for writing, compiling and deploying application on Tomcat 7 Servlet container.

We have also provided the source code of the tutorial. You should download the source code, as this source is used for creating the application. It's very easy if you download the source code and then view the following video tutorial which will guide you the step-by-step process to create the Hello World application using the Struts framework.

Steps to create first application in Eclipse IDE

  1. Create a dynamic web application
  2. Add JSP and html page to the project
  3. Add the Struts 2 library files
  4. Add the struts.xml file
  5. Add the Action class and proper file
  6. Add the filter configuration in web.xml file
  7. Deploy and test the application

View the video tutorial of creating first application in eclipse IDE using Struts 2 framework:

Steps to create first application in Eclipse IDE

1. Create a dynamic web application using Eclipse IDE as shown below:

2. Copy the JSP and html files from the code downloaded above to the Eclipse project as shown below:

3. Copy the struts library files and paste in the lib directory of the dynamic web application as shown below:

4. Add the struts.xml file

 

5. Add the Action class and proper file. Either you can create the Action class yourself or copy it from the source code provided by us.

6. Add the filter configuration in web.xml file

7. Deploy and test the application

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  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.

Posted on: February 24, 2013

Related Tutorials

Ask Questions?    Discuss: Struts 2 Hello World Example  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com