struts2--result类型
来源:互联网 发布:巨人网络社会招聘 编辑:程序博客网 时间:2024/06/08 05:16
struts.xml配置文件的result有哪几种类型呢?
<result name="" type="">/xxx.xxx</result>
1、dispatcher 分发,默认结果集,发起一次请求,url地址不变,用来呈现jsp页面
<result name="mydispatcher" type="dispatcher">/mydispatcher.jsp</result>
2、redirect 重定向,发起两次请求,url地址改变(也可以重定向到action)
<result name="myredirect" type="redirect">/myredirect.jsp</result><result name="myredirect" type="redirect">mydispatcher.action</result>
3、redirectAction 重定向到Action,发起两次请求,url地址改变
<result name="myredirect" type="redirect">/myredirect.jsp</result><result name="myredirect" type="redirect">mydispatcher.action</result>4、plainText 纯文本(html代码不会被编译,直接返回html所有的元素)
<result name="myplainText" type="plainText">/myplainText.jsp</result>
5、chain (一个Action链另一个Action)
6、freemarker 呈现freemarker模板引擎
7、httpheader 返回一个已配置好的http头信息响应
8、stream 将原始数据作为流传递回浏览器,对下载的内容和图片非常有用
9、velocity 呈现 Velocity模板
10、xslt 呈现xml到浏览器,该xml可以通过xls模板进行转换
阅读全文
0 0
- Struts2中的result类型
- struts2 result type类型
- struts2 result 类型
- struts2 result type 类型
- struts2 result类型
- struts2的Result类型
- Struts2 自定义Result类型
- Struts2 自定义Result类型
- struts2的Result类型
- Struts2:Result结果类型
- Struts2:Result类型
- Struts2-result类型
- struts2 Result 类型说明
- Struts2-result类型
- Struts2的Result类型
- struts2 result 类型
- struts2--result类型
- struts2.0 action result类型
- es6一些常见规则
- Python下载文件
- java编程思想
- pymssql 的封装使用
- samba配置window共享文件夹
- struts2--result类型
- Python起步之利用循环求平均值的不同版本
- 浅谈数据库主键策略
- 算法-KMP算法
- AsyncTask执行缓慢的原因分析
- GCD2,GCD的其他用法
- MySQL的Replace into 与 Insert into on duplicate key update的不同之处
- 小软件公司生存之道
- jdk8中的forEach使用return执行下一次遍历