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/05/01 07:23:35 UTC
[7/8] struts-examples git commit: unified formatting
unified formatting
Project: http://git-wip-us.apache.org/repos/asf/struts-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-examples/commit/b5c99b5b
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/b5c99b5b
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/b5c99b5b
Branch: refs/heads/master
Commit: b5c99b5b958f76a59fc17b3e32467d25ce5ef587
Parents: b48664e
Author: Stefaan Dutry <st...@gmail.com>
Authored: Mon May 1 08:27:50 2017 +0200
Committer: Stefaan Dutry <st...@gmail.com>
Committed: Mon May 1 08:27:50 2017 +0200
----------------------------------------------------------------------
form-processing/src/main/resources/struts.xml | 39 ++++++++++------------
1 file changed, 17 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/struts-examples/blob/b5c99b5b/form-processing/src/main/resources/struts.xml
----------------------------------------------------------------------
diff --git a/form-processing/src/main/resources/struts.xml b/form-processing/src/main/resources/struts.xml
index 8876d99..8195c32 100644
--- a/form-processing/src/main/resources/struts.xml
+++ b/form-processing/src/main/resources/struts.xml
@@ -1,31 +1,26 @@
<?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.helloworld.action.HelloWorldAction" method="execute">
- <result name="success">/HelloWorld.jsp</result>
- </action>
-
- <action name="register" class="org.apache.struts.register.action.Register" method="execute">
- <result name="success">/thankyou.jsp</result>
- </action>
+ <action name="index">
+ <result>/index.jsp</result>
+ </action>
- </package>
+ <!-- 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.helloworld.action.HelloWorldAction" method="execute">
+ <result name="success">/HelloWorld.jsp</result>
+ </action>
-</struts>
\ No newline at end of file
+ <action name="register" class="org.apache.struts.register.action.Register" method="execute">
+ <result name="success">/thankyou.jsp</result>
+ </action>
+ </package>
+</struts>