当前位置:首页>正文

xml标签属性作用

2023-05-30 09:12:15 互联网 未知

xml标签属性作用?

1. chain

用来处理Action链

com.opensymphony.xwork2.ActionChainResult

2. dispatcher

用来转向页面,通常处理JSP

org.apache.struts2.dispatcher.ServletDispatcherResult

3. freemaker

处理FreeMarker模板

org.apache.struts2.views.freemarker.FreemarkerResult

4. httpheader

控制特殊HTTP行为的结果类型

org.apache.struts2.dispatcher.HttpHeaderResult

5. redirect

重定向到一个URL

org.apache.struts2.dispatcher.ServletRedirectResult

6. redirectAction

重定向到一个Action

org.apache.struts2.dispatcher.ServletActionRedirectResult

7. stream

向浏览器发送InputSream对象,通常用来处理文件下载,还可用于返回AJAX数据

org.apache.struts2.dispatcher.StreamResult

8. velocity

处理Velocity模板

org.apache.struts2.dispatcher.VelocityResult

9. xslt

处理XML/XLST模板

org.apache.struts2.views.xslt.XSLTResult

10. plainText

显示原始文件内容,例如文件源代码

org.apache.struts2.dispatcher.PlainTextResult

11. redirect-action

重定向到一个Action

org.apache.struts2.dispatcher.ServletActionRedirectResult