changed formatting for struts.xml

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

Branch: refs/heads/master
Commit: 03e6bd8164e8482b476a718204ff026a9147307b
Parents: bfea188
Author: Stefaan Dutry <stefaan.du...@gmail.com>
Authored: Wed Apr 19 22:41:09 2017 +0200
Committer: Stefaan Dutry <stefaan.du...@gmail.com>
Committed: Wed Apr 19 22:41:09 2017 +0200

----------------------------------------------------------------------
 using-tags/src/main/resources/struts.xml | 33 ++++++++++++---------------
 1 file changed, 14 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/03e6bd81/using-tags/src/main/resources/struts.xml
----------------------------------------------------------------------
diff --git a/using-tags/src/main/resources/struts.xml 
b/using-tags/src/main/resources/struts.xml
index be7c92c..8711da3 100644
--- a/using-tags/src/main/resources/struts.xml
+++ b/using-tags/src/main/resources/struts.xml
@@ -1,27 +1,22 @@
 <?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 the URL is hello.action the call the execute method of 
class HelloWorldAction.
-               If the result returned by the execute method is success render 
the HelloWorld.jsp -->
-               <action name="hello" 
class="org.apache.struts.using_tags.helloworld.action.HelloWorldAction" 
method="execute">
-                       <result name="success">/HelloWorld.jsp</result>
-               </action>
-
-       </package>
+        <action name="index">
+            <result>/index.jsp</result>
+        </action>
 
-</struts>
\ No newline at end of file
+        <!-- If the URL is hello.action the call the execute method of class 
HelloWorldAction.
+        If the result returned by the execute method is success render the 
HelloWorld.jsp -->
+        <action name="hello" 
class="org.apache.struts.using_tags.helloworld.action.HelloWorldAction" 
method="execute">
+            <result name="success">/HelloWorld.jsp</result>
+        </action>
+    </package>
+</struts>

Reply via email to