Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The Bootstrap tutorial walks through installing the framework and creating a simple application.

Note

Be forewarned that While the framework is geared toward professional developers. To create simple to use, creating non-trivial applications , assumes a working knowledge of several key technologies is required.many JEE technologies, including:

  • Java
  • Filters, JSP, and Tag Libraries
  • JavaBeans
  • HTML and HTTP
  • Web Containers (such as Tomcat)
  • XML

...

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.

...

To get started with a new application, we can use the blank template, run the Maven archetype, or just setup set up a web infrastructure from scratch.

...

For those of us using Maven as a build system, we can use the Maven Archetype to create a new application.

Code Block

mvn archetype:create -DgroupId=tutorial \
                       -DartifactId=tutorial \
                       -DarchetypeGroupId=org.apache.struts \
                       -DarchetypeArtifactId=struts2-archetype-starter \
                       -DarchetypeVersion=2.0.2-SNAPSHOT \
                       -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository

The archetype command creates an application template. For more information, see Struts Maven ArchetypeFor directions on using the Struts 2 archetypes see the Struts 2 Maven Archetypes page.

Setting up from scratch

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

...