struts2 result 的type类型

<result-types>

<result-typename="chain"class="com.opensymphony.xwork2.ActionChainResult"/>

<result-typename="dispatcher"class="org.apache.struts2.dispatcher.ServletDispatcherResult"default="true"/>

<result-typename="freemarker"class="org.apache.struts2.views.freemarker.FreemarkerResult"/>

<result-typename="httpheader"class="org.apache.struts2.dispatcher.HttpHeaderResult"/>

<result-typename="redirect"class="org.apache.struts2.dispatcher.ServletRedirectResult"/>

<result-typename="redirectAction"class="org.apache.struts2.dispatcher.ServletActionRedirectResult"/>

<result-typename="stream"class="org.apache.struts2.dispatcher.StreamResult"/>

<result-typename="velocity"class="org.apache.struts2.dispatcher.VelocityResult"/>

<result-typename="xslt"class="org.apache.struts2.views.xslt.XSLTResult"/>

<result-typename="plainText"class="org.apache.struts2.dispatcher.PlainTextResult"/>

<!--DeprecatednameformscheduledforremovalinStruts2.1.0.ThecamelCaseversionsarepreferred.Seeww-1707-->

<result-typename="redirect-action"class="org.apache.struts2.dispatcher.ServletActionRedirectResult"/>

<result-typename="plaintext"class="org.apache.struts2.dispatcher.PlainTextResult"/>

</result-types>

相关推荐