struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [2/2] struts-examples git commit: Defines default action
Date Fri, 17 Jun 2016 08:38:52 GMT
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 <lukasz.lenart@gmail.com>
Authored: Fri Jun 17 10:38:35 2016 +0200
Committer: Lukasz Lenart <lukasz.lenart@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>


Mime
View raw message