The Bootstap tutorials starts from the very beginning and steps through creating a simple application.
We download the framework and get started on an application of our own. |
|
We present a page with a simple Welcome message. |
|
We create a Welcome page with links to other actions in the application. |
|
We interpret the Logon form, and return a different result code depending on the circumstances. |
|
We setup different results for different result codes. |
|
We use the validation framework to verify data submitted from a form. |
|
We move the validation messages to a message resource bundle. |
|
And, now, you're on your own, but not alone ... |
For more coding examples, see the Cookbook.
4 Comments
Ted Husted
TODO
Adam Hardy
I am setting up a struts2 app for the first time and I followed the bootstrap app docs to get myself going.
I had a few minor problems due to some bad assumptions I made. They will no doubt seem facile to experts but certainly weren't obvious to me.
I didn't find solutions to those issues here and ended up searching the web.
I thought I'd post the info here in case someone who's able to wants to update this.
Jacek Sroka
Ready, Set, Go! page suggests to use the following maven command to create new application:
mvn archetype:create -DgroupId=be.realdolmen.struts2 -DartifactId=tutorial
\ -DarchetypeGroupId=org.apache.struts
\ -DarchetypeArtifactId=struts2-archetype-starter
\ -DarchetypeVersion=2.0.11.2
Yet this does not create a blank application but "a more featured application using several common technologies used in production applications" (see http://struts.apache.org/2.x/docs/struts-maven-archetypes.html).
Dave Newton
Using the blank application would be the recommended way to create a blank application; the archetype creates a new application, not a blank one, with some common technologies included. We're always happy to get new, maintained archetypes--feel free to file a JIRA with a patch!
Thanks,
Dave