THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Sitemesh integration build in
- A simple SAF2 Struts2 action example (both instantiated through Spring and SAF2 itself)
- A simple SAF2 Struts2 validation example (action and action-alias level)
- A Simple SAF2 Struts2 conversion example (global and action level)
- A simple SAF2 Struts2 resource bundle (both global, action and package level)
Installing
...
Struts2 maven archetype
- Change directory to SAF2's maven archetype directory eg. from SAF2Struts2's root directory (You will need the SAF2 Struts2 source from SVN)
Code Block cd ./struts2-archetype-starter <press enter>
- Run the following command to install SAF2 Struts2 maven archetype into one's local maven repository (typically at ~/.m2/repository where ~ is the user directory)
Code Block mvn install
- If "build succesfull" is shown at the console after execution of the above command, the SAF2 Struts2 maven archetype plugin is successfully installed.
Create
...
Struts2 Web app template
To create a workable template of SAF2 Struts2 :-
- Change directory to where the web app template is to be created eg. assuming the directory to be myWebApp.
Code Block mkdir /home/tmjee/myWebApp cd /home/tmjee/myWebApp
- Run the following command to generate the sample web app template, assuming:-
Root java package
com.myCompany.mySystem
The webapp war name
myWebApp
Code Block mvn archetype:create -DgroupId=com.myComp.mySystem -DartifactId=myWebApp -DarchetypeGroupId=org.apache.struts2struts -DarchetypeArtifactId=struts2-archetype-quickstartstarter
Using the created
...
Struts2 Web app template
Following are some maven command that might be handy when using the generated SAF2 Struts2 web app template :-
- To compile
Code Block mvn compile
...