Fork me on GitHub
Edit on GitHub

Getting Started

Edit on GitHub

The framework documentation is written for active web developers and assumes a working knowledge about how Java web applications are built. For more about the underlying nuts and bolts, see the Key Technologies Primer.

Follow along with these tutorials to get started using Struts 2. The example code for the tutorials available for checkout from the Struts 2 GitHub repository at struts-examples. The example projects use Maven to manage the artifact dependencies and to build the .war files.

The Struts 2 user mailing list is an excellent place to get help. If you are having a problem getting the tutorial example applications to work search the Struts 2 mailing list. If you don’t find an answer to your problem, post a question on the mailing list.

Examples

How to create a Struts 2 web application

Hello World Using Struts 2

Using Tags

Coding Actions

Processing Forms

Form Validation

Message Resource Files

Exception Handling

Debugging Struts

Form Tags

Form Validation Using XML

Control Tags

Wildcard Method Selection

Themes

Spring and Struts 2

Annotations

Introducing Interceptors

Unit Testing

HTTP Session

Preparable Interface

Exclude Parameters

Extra tutorials

JasperReports Tutorial