Welcome to Struts
...
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. The framework is designed so that you can use as many or as few of its features as you like.
Milehigh View of Struts 2
In a conventional web application, requests are often routed to a server page. The server page is responsible for all the processing required by the request.
In a Stuts 2 application, the request first goes to a dispatcher component that selects an action. The action can include an Action class, several Result classes, and even exception handling.
The Action classes processes the logic, and selects a Result class. The Result class can either render the response directly or (more often) transfer control to a server page or template page.
To make it easier to access dynamic data obtained by an Action, the framework includes a library of custom tags. The tags interact with the framework's validation and internationalization features, so input is correct and output is localized. The tag library can be used with JavaServer Pages or FreeMarker templates.
Warning | ||
---|---|---|
| ||
Struts Action Framework 2 is at a pre-release, pre-Alpha stage. If you are just getting started with Action2Struts2/WebWork2, we recommend WebWork 2.2 as an entry point. WW2 is stable and production ready. When SAF2 Struts 2 is released, migration paths for WW2 WebWork 2 and SAF1 Struts 1 developers will be available. See the SAF2 Struts 2 release plan for details and status. |
Getting Startedc
The online documentation is grouped into five sectionsthree areas.
Our overview is your ten minute tour of Struts 2: Who, What, When, Where, and Why. | |||
Several Our tutorials are available designed to help you get started with the framework , from soon as possible. We offer an all-purpose "soup to nuts" tutorials to tutorial as well as 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). | |||
Our in-depth guides focus on specific areas of the framework, such as Views, Third-party Extensions, and the Core framework | Getting here from there. |
Overview
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
...
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
...
Guides
Excerpt Include | |||||
---|---|---|---|---|---|
|
View Developers Guide
...
Core Developers Guide
...
|
...
Migration Guide
Excerpt Include | ||||
---|---|---|---|---|
|
Help with WebWork2
...