Home > Tutorials > Getting Started > How To Create A Struts 2 Web Application

This tutorial walks through installing the framework and creating a simple application.

Icon

While the Struts 2 framework is simple to use, creating non-trivial applications assumes a working knowledge of many J2EE technologies, including:

  • Java
  • Filters, JSP, and Tag Libraries
  • JavaBeans
  • HTML and HTTP
  • Web Containers (such as Tomcat)
  • XML

(lightbulb) For more about supporting technologies, see the Key Technologies Primer.

Java Requirements

Struts 2 requires Servlet API 2.4 or higher, JSP 2.0 or higher, and Java 5 or higher.

Our First Application

To get started using Struts 2 we will create a web application using Maven to manage the artifact dependencies.

You can checkout all the example applications from the Struts 2 subversion sandbox repository at https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples.

Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application