You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by sd...@apache.org on 2017/04/19 21:59:04 UTC
[3/9] struts-examples git commit: changed formatting for struts.xml
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 <st...@gmail.com>
Authored: Wed Apr 19 22:41:09 2017 +0200
Committer: Stefaan Dutry <st...@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>