|
Page Edited :
WW :
Ready, Set, Go!
Ready, Set, Go! has been edited by Wendy Smoak (Nov 08, 2006). Change summary: fixed repo URL The Bootstrap tutorial walks through installing the framework and creating a simple application.
In the Ready, Set, Go! lesson, we download the framework and get started on an application of our own. Download the DistributionA distribution can be downloaded from the Apache Struts website
Our First ApplicationTo get started with a new application, we can use the blank template, run the Maven archetype, or just setup a web infrastructure from scratch. Using the Blank ApplicationThe blank web application in the distribution's apps directory is meant as a template. We can make a copy of the "blank.war", deploy it to our container, and use the exploded copy as the basis for our application. There is even a simple batch file in the source code directory that we can use to recompile the application in place. Run the Maven ArchetypeFor those of us using Maven as a build system, we can use the Maven Archetype to create a new application. mvn archetype:create -DgroupId=tutorial \
-DartifactId=tutorial \
-DarchetypeGroupId=org.apache.struts \
-DarchetypeArtifactId=struts2-archetype-starter \
-DarchetypeVersion=2.0.1-SNAPSHOT \
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
The archetype command creates an application template. For more information, see Struts Maven Archetype
|
Unsubscribe or edit your notifications preferences
