[XML] 纯文本查看 复制代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"struts-2.3.dtd" >
<struts>
<!-- 开发者模式 -->
<constant name="struts.devMode" value="true"></constant>
<!-- 后缀的配置:演示配置文件的加载顺序 -->
<constant name="struts.action.extension" value="do"></constant>
<!--设置编码形式为GB2312-->
<constant name="struts.i18n.encoding" value="UTF-8"/>
</struts>
[XML] 纯文本查看 复制代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="p1" extends="struts-default">
<action name="hello" class="cn.itcast.action.HelloAction" method="sayHello">
<result name="success" type="dispatcher">/succ.jsp</result>
</action>
</package>
</struts>
[AppleScript] 纯文本查看 复制代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"struts-2.3.dtd" >
<struts>
<package name="default" extends="struts-default">
<global-results>
<result name="success">/success.jsp</result>
<result name="login">/login.jsp</result>
<result name="error">/error.jsp</result>
</global-results>
</package>
</struts>