tree: 5c41f264d6728842545ffaf0638eee99b397bef9 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
  4. README.txt
basic-struts/README.md

This is the example project referred to in the Struts 2 documentation, How To Create A Struts 2 Web Application tutorial.

Building the war

Using Maven

To build the application‘s war file run mvn clean package from the project’s root folder.

The war file is created in the target sub-folder.

Running the application

Using Maven

run the command mvn jetty:run

Using a Servlet container

Copy the war file to your Servlet container (e.g. Tomcat) and then startup the Servlet container.

Accessing the application

In a web browser go to: http://localhost:8080/basic-struts/index.action

You should see a web page with

Welcome to Struts 2!