Welcome to Struts Action Framework 2
Struts Action Framework 2 is a web-based MVC framework that emphasizes simplicity and interoperability. Features of the framework include reusable UI template and themes, internationalization, dynamic form parameter mapping to JavaBeans, robust client and server side validation, and much more.
Work in progress!
Struts Action Framework 2 is at a pre-release, pre-Alpha stage. If you are just getting started with Action2/WebWork2, we recommend WebWork 2.2 as an entry point. WW2 is stable and production ready. When SAF2 is released, migration paths for WW2 and SAF1 developers will be available.
See the SAF2 release plan for details and status.
The online documentation is grouped into five sections.
The framework is designed to minimize coding so that developers can spend less time fussing with HTTP and HTML plumbing (leaving more time to work on the interesting parts of an application). |
|
Several tutorials are available to help you get started with the framework, from all-purpose "soup to nuts" tutorials to specialty tutorials on portlets and database access. |
|
Third party extensions and other tools help integrate the framework into your development environment. |
|
The framework offers a flexible view layer that supports multiple view technologies, including JSP, FreeMaker, and Velocity. |
|
In processing a request, the framework utilizes three key class types: Actions, Interceptors, and Results, which are configured using one or more XML documents (or Java 5 annotations). |
Overview
Tutorials
DEPRECATED: moved to http://struts.apache.org/getting-started/
Several tutorials are available to help you get started with the framework, from all-purpose "soup to nuts" tutorials to specialty tutorials on portlets and database access.
Primers
- Bootstrap - few simple steps how to start with Struts 2
- Struts 2 + Spring 2 + JPA + AJAX
- Struts 2 / Hibernate Tutorial
- Struts 2, Spring 3, JPA 2, Maven Example
Speciality
- Extending an Application with Custom Plugins
- CRUD Made Easy
- Creating java web applications with AngularJS and Struts2
- 4 Easy Steps to create a Java based Web Application with Struts2 and jQuery
- JasperReports Tutorial
- Portlet Tutorial
- Developing a Portlet using Eclipse
- Struts 2 JUnit Plugin Tutorial
Examples
Several example applications are bundled with the framework, as ready-to-deploy WARs.
Blank | An "empty" application that you can use as the starting point for your own projects. |
MailReader | A simple application that demonstrates best practices. |
Portlet | An application demonstrating portlet support |
Showcase | A sampling of common (and not so common) use cases. |
Simple examples and links to "powered by" sites |
For the complete source code to the applications, see the source code distribution.
Errata?
To suggest a change or a correction to any part of the documentation, log in and leave a comment on the appropriate page. We are always looking for help with the documentation!