Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the "Getting Started" lesson, we download the framework and get started on an application of our own.

Download the Distribution

A distribution can be downloaded from the Apache Struts website. The full distribution contains the struts2-core.jar file and related dependencies, example applications, a copy of the documentation in HTML format, and the complete source code.

Tip

If you'd like to compile it yourself, please refer to Building the Framework from Source.

Your First Application

To get started on your own application, you can utilize the blank template, run the Maven archetype, or just setup your own web infrastructure from scratch.

Using the Blank Application

The blank web application in the distribution's apps directory is meant as a template. Make a copy of the "blank.war", deploy it to your container, and use the exploded copy as the basis for your application.

Run the Maven Archetype

If you use Maven as a build system, you can also use the Maven Archetype to create a new application.

...

Note

As of 17 Aug 2006, the archetype is not generating the appropriate configuration files. See WW-1412.

Setting up from scratch

If for some reason the blank template or archetype doesn't work for you, it's not so hard to setup a Struts 2 application from scratch. If you are interested, see Simple Setup.

...