Struts 2 Hello World Example

Learn how to create Struts 2 Hello World Example program.

Struts 2 Hello World Example

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