Repository: struts-examples
Updated Branches:
  refs/heads/master c785bc559 -> 5b55e1aa8


Added README.md file


Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/213b0a59
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/213b0a59
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/213b0a59

Branch: refs/heads/master
Commit: 213b0a59dd0bc4f9240dc286a475ebe8d10db1eb
Parents: c785bc5
Author: Stefaan Dutry <stefaan.du...@gmail.com>
Authored: Mon Apr 17 10:15:14 2017 +0200
Committer: Stefaan Dutry <stefaan.du...@gmail.com>
Committed: Mon Apr 17 10:22:58 2017 +0200

----------------------------------------------------------------------
 basic-struts/README.md | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/213b0a59/basic-struts/README.md
----------------------------------------------------------------------
diff --git a/basic-struts/README.md b/basic-struts/README.md
new file mode 100644
index 0000000..529ccb4
--- /dev/null
+++ b/basic-struts/README.md
@@ -0,0 +1,24 @@
+This is the example project referred to in the Struts 2 documentation, [How To 
Create A Struts 2 Web 
Application](http://struts.apache.org/getting-started/how-to-create-a-struts2-web-application.html)
 tutorial.
+
+## Building the war
+### Using Maven
+To build the application's war file run `mvn clean package` from the project's 
root folder.
+
+The war file is created in the `target` sub-folder.
+
+## Running the application
+### Using Maven
+run the command `mvn jetty:run`
+
+### Using a servlet container
+Copy the war file to your Servlet container (e.g. Tomcat) and then startup the 
Servlet container.
+
+## Accessing the application
+
+In a web browser go to:  
[http://localhost:8080/basic-struts/index.action]([http://localhost:8080/basic-struts/index.action)
 
+
+You should see a web page with 
+
+```
+Welcome to Struts 2!
+```

Reply via email to