标签:信息 span eem 通用 完全 efault load nbsp 策略
<result-types> <result-type name="chain" class="com.opensymphony.xwork2.ActionChainResult"/> <result-type name="dispatcher" class="org.apache.struts2.dispatcher.ServletDispatcherResult" default="true"/> <result-type name="freemarker" class="org.apache.struts2.views.freemarker.FreemarkerResult"/> <result-type name="httpheader" class="org.apache.struts2.dispatcher.HttpHeaderResult"/> <result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult"/> <result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult"/> <result-type name="stream" class="org.apache.struts2.dispatcher.StreamResult"/> <result-type name="velocity" class="org.apache.struts2.dispatcher.VelocityResult"/> <result-type name="xslt" class="org.apache.struts2.views.xslt.XSLTResult"/> <result-type name="plainText" class="org.apache.struts2.dispatcher.PlainTextResult" /> </result-types>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN" "http://struts.apache.org/dtds/struts-2.1.7.dtd"> <struts> <!-- 当struts.xml配置文件发生修改,会立刻加载,在生产环境下最好不要配置 --> <constant name="struts.configuration.xml.reload" value="true"></constant> <!-- 提供更加友好的提示信息 --> <constant name="struts.devMode" value="true"></constant> <!-- 对字符集的设置 --> <constant name="struts.i18n.encoding" value="GB18030"/> <package name="struts2" extends="struts-default"> <!-- 全局Result,如果Action没有配置Result,使用全局Result,如果有局部Result,使用局部Result --> <global-results> <result>/success.jsp</result> <result name="error">/error.jsp</result> </global-results> <action name="login" class="com.djoker.struts2.LoginAction"> <result>/success.jsp</result> <result name="error">/error.jsp</result> </action> </package> <include file="struts-user.xml"></include> </struts>
标签:信息 span eem 通用 完全 efault load nbsp 策略
原文地址:http://www.cnblogs.com/djoker/p/6218644.html