Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: correct link and remove dead link

Apache Struts 2 is an elegant, extensible framework for building enterprise-ready Java web applications. Distributions of Struts 2 are available as a free download under the Apache License.

The contents of the Struts 2 documentation wiki (what you're reading now) are distributed with each release, but maintained via the on-line wiki.

Tip

Have a suggestion, correction, or improvement? Log in and leave a comment on the appropriate page or file a ticket against the Struts 2 documentation. We're always looking for help!

Note

We've started planning the next version of Struts aka Struts 3 (or 2.5) which will break backward compatibility, if you want to join please add your two cents here.

Getting Started

The documentation is grouped into four areas.

Tutorials

Our tutorials are designed

Note
titleUnder Construction

We're in the process of migrating this wiki from Open Symphony WebWork2 to Struts Action Framework 2. WebWork is in the process of joining the Apache Struts project. See our incubator page for details. During the migration period, references to WebWork2 and SAF2 will be intermixed.

Welcome to the Apache Struts Action Framework 2: Java's cutting-edge web development platform!

Info

The SAF2 documentation is maintained online, posted to the Apache Struts web site on a regular basis, and also bundled with each release. The online version represents the latest development version ("nightly build") and may document features not available in your release. See the documenation bundled with each release for the best information about the features available in that release. Release documentation is available in HTML and PDF format.

  • HTML format: docs/Documentation.html
  • PDF format: docs/docs.pdf
  • Javadocs: docs/api/index.html

QuickStart

The best way to get started with any new technology can be to just jump in and try it out. If you agree, download a distribution and take our QuickStart feature for a spin.

Panel
titleQuickStart Quick Start
  • Download and extract a distribution
  • Open a command prompt to the root directory of the distribution
  • Using a Java 5 JDK, execute:
    • java -jar webwork-2.2.jar quickstart:showcase
  • Open your browser to the URL:
  • Feel free to edit any of the sources (.java, .jsp) in:
    • webapps/showcase
  • Reload your browser to see the changes right away

About Struts Action Framework 2

Getting Started

...

to help you get started with the framework

...

ASAP. We offer an all-purpose "Bootstrap" tutorial as well as specialty tutorials on portlets and database access.

Guides

Our in-depth technical guides focus on specific components of the framework, such as the Core framework, Struts Tags, and optional Extensions, as well as migrating from Struts 1 or WebWork 2.

FAQs and Cookbook

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

Security Bulletins

Our security bulletins explain any security issues and their solutions

(star) Other Resources

Books, articles, and presentations about Struts 2.

Excerpt Include
Nutshell
Nutshell
nopaneltrue

Community Wiki

The Struts 2 Community Wiki is an additional resource. It is not distributed with Struts 2, and contributions to the community wiki do not require a CLA.

Next: Tutorials

Tutorials

Distributions

  • (warning) For now, SAF2 may be checked out from the incubator repository.
    • Code Block
      
      svn co https://svn.apache.org/repos/asf/incubator/webwork2/
      
    • A SAF2 distribution will be available once the codebase exits the Apache Incubator
  • What about QuickStart?

Requirements

Getting Help

Coding Applications

Plugins, Tools, and Extensions

Reference

Resources

Contributor Resources

More Help with WebWork2

...

...