You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2016/06/17 08:38:52 UTC

[2/2] struts-examples git commit: Defines default action

Defines default action


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

Branch: refs/heads/master
Commit: f59d7baa25fc33fad679f132f83822b0c3d5f5bd
Parents: e6c39f7
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Fri Jun 17 10:38:35 2016 +0200
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Fri Jun 17 10:38:35 2016 +0200

----------------------------------------------------------------------
 tiles/src/main/resources/struts.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/f59d7baa/tiles/src/main/resources/struts.xml
----------------------------------------------------------------------
diff --git a/tiles/src/main/resources/struts.xml b/tiles/src/main/resources/struts.xml
index f3e463c..cd7f487 100644
--- a/tiles/src/main/resources/struts.xml
+++ b/tiles/src/main/resources/struts.xml
@@ -9,4 +9,15 @@
   <include file="example.xml"/>
   
   <!-- Add addition packages and configuration here. -->
+
+  <package name="default" extends="struts-default">
+    <default-action-ref name="index"/>
+    <action name="index">
+      <result type="redirectAction">
+        <param name="namespace">example</param>
+        <param name="actionName">HelloWorld</param>
+      </result>
+    </action>
+
+  </package>
 </struts>