Reformats and adds default action ref

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

Branch: refs/heads/master
Commit: bd7959d98236f20d46cd7b242d9fcf28bbcababd
Parents: 001dab2
Author: Lukasz Lenart <lukasz.len...@gmail.com>
Authored: Tue Jul 19 07:23:46 2016 +0200
Committer: Lukasz Lenart <lukasz.len...@gmail.com>
Committed: Tue Jul 19 07:23:46 2016 +0200

----------------------------------------------------------------------
 .../src/main/resources/struts.xml               | 41 +++++++++++---------
 1 file changed, 22 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/bd7959d9/form-xml-validation/src/main/resources/struts.xml
----------------------------------------------------------------------
diff --git a/form-xml-validation/src/main/resources/struts.xml 
b/form-xml-validation/src/main/resources/struts.xml
index 5e6f2bd..23cd6e9 100644
--- a/form-xml-validation/src/main/resources/struts.xml
+++ b/form-xml-validation/src/main/resources/struts.xml
@@ -1,30 +1,33 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE struts PUBLIC
-               "-//Apache Software Foundation//DTD Struts Configuration 
2.5//EN"
-               "http://struts.apache.org/dtds/struts-2.5.dtd";>
+    "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
+    "http://struts.apache.org/dtds/struts-2.5.dtd";>
 
 <struts>
 
-       <constant name="struts.devMode" value="true" />
+  <constant name="struts.devMode" value="true"/>
 
-       <package name="basicstruts2" extends="struts-default">
+  <package name="basicstruts2" extends="struts-default">
 
-        <!-- If no class attribute is specified the framework will assume 
success and 
-        render the result index.jsp -->
-        <!-- If no name value for the result node is specified the success 
value is the default -->
-               <action name="index">
-                       <result>/index.jsp</result>
-               </action>
+    <!-- If no class attribute is specified the framework will assume success 
and
+    render the result index.jsp -->
 
-           <action name="edit" 
class="org.apache.struts.edit.action.EditAction" method="input">
-               <result name="input">/edit.jsp</result>
-           </action>
-           
-           <action name="save" 
class="org.apache.struts.edit.action.EditAction" method="execute">
-               <result name="input">/edit.jsp</result>
-               <result name="success">/thankyou.jsp</result>
-           </action>
+    <default-action-ref name="index"/>
 
-       </package>
+    <!-- If no name value for the result node is specified the success value 
is the default -->
+    <action name="index">
+      <result>/index.jsp</result>
+    </action>
+
+    <action name="edit" class="org.apache.struts.edit.action.EditAction" 
method="input">
+      <result name="input">/edit.jsp</result>
+    </action>
+
+    <action name="save" class="org.apache.struts.edit.action.EditAction" 
method="execute">
+      <result name="input">/edit.jsp</result>
+      <result name="success">/thankyou.jsp</result>
+    </action>
+
+  </package>
 
 </struts>
\ No newline at end of file

Reply via email to