You can download checkout this complete example project , Basic_Struts2_Mvn, from Google Code - http(and all the other Getting Started tutorial example projects) from the
Struts 2 subversion sandbox at https://codesvn.googleapache.comorg/repos/pasf/struts2-examplesstruts/downloadssandbox/list. After unzipping the download you should have a folder named Basic_Struts2_Mvn. In that folder is a README.txt file that has instructions for building and running this example.trunk. The example projects use Maven
to manage the artifact dependencies and to build the .war files.
Info |
---|
This tutorial assumes you know how to create a Java web application that uses Maven to manage artifacts and build the web application archive (war) file. |
...
In your Java IDE create a Java web application with a project name of Basicbasic_Struts2_Mvn struts that follows the standard Maven project folder structure. In your pom.xml include the following:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<build> <finalName>Basic<finalName>basic_Struts2_Mvn<struts</finalName> </build> |
Step 2 - Add index.jsp
...