Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titleWork in progress!

Apache Struts 2 is at a pre-release stage. If you are just getting started with Struts2/WebWork2, we recommend WebWork 2.2 as an entry point. WW2 is stable and production ready. When Struts 2 is released, migration paths for WebWork 2 and Struts 1 developers will be available. See the Struts 2 release plan Release Plan 2.0.0 for details and status.

Apache Struts is a free open-source framework for creating Java web applications. For more about the Apache Struts project, visit the project web site.

...

Tutorials

Our tutorials are designed to help you get started with the framework soon as possibleASAP. We offer an all-purpose "soup to nuts" tutorial as well as specialty tutorials on portlets and database access.

FAQs

Our FAQs provide a wide range of rapid-fire "HOWTOs" in question-and-answer format.

Guides

Our in-depth guides focus on specific components of the framework, such as Views, the Core framework, and Third-party Extensionsoptional Extensions, as well as migrating from Struts 1 or WebWork 2.

(warning) An overview of all three areas is available.

...

The framework's Controller acts as a bridge between the application's Model and the web View. When a request is received, the Controller invokes an Action class. The Action class consults with examines or updates the application's state by consulting the Model (or, preferably, a Facade an interface representing your the Model) to examine or update the application's state. To transfer data between the Model and the View, properties can be placed on the Action class, or on a plain old JavaBean.

Most often, the Model is represented as a graph of JavaBean objects. Alternatively, the Model may be represented as a set of data-driven service methods. Preferably, the Model will do the "heavy lifting", and the Action will act as a "traffic cop" or adapter. The framework provides sophisticated, automatic type conversion to simplify transfering data between rich domain objects and text-only HTTP requests.

...

The framework provides general-purpose defaults, so you can start using Struts 2 right away, "out of the box" right away. As needed, you can override any of our defaults in your application's configuration. We provide the base framework, but you can still write your application your way.

...