Struts2 中,action中的result的各种转发类型
来源:互联网 发布:搞怪修图软件 编辑:程序博客网 时间:2024/04/27 13:50
多种结果转发类型:
一、dispatch(默认值):内部请求转发 例:
<result name="success">/WEB-INF/page/hello.jsp</result>
二、redirect:浏览器重定向,
<action name="redirect"><result type="redirect">/employeeAdd.jsp</result> //employeeAdd.jsp在WebContent中;</action>
三、redirectAction:重定向action;
重定向同一个包里的action 中去,redirect 为同一个包里的另一个action名称
<action name="redirectAction" ><result type="redirectAction">redirect</result></action>
重定向不同一个包里的action 中去,
<action name="redirectOtherAction" ><span style="white-space:pre"></span><result type="redirectAction"><param name="actionName">otherAction</param><span style="white-space:pre"></span><param name="namespace">/test2</param></result></action>
四、plainText:输出视图的源代码
<action name = "plainText"><result type="plainText"><param name="location">/employeeAdd.jsp</param><param name="charSet">UTF-8</param> <!-- 指定读取文件的编码格式 --></result></action>
0 0
- Struts2 中,action中的result的各种转发类型
- Struts2中Action result各种转发类型
- Struts2中Action result各种转发类型
- struts2教程:5、Action中result的各种转发类型
- 【Struts2】④Action中result的各种转发类型
- Struts2:Action中result的各种转发类型
- struts2中Action配置中的各项默认值和result的各种转发类型
- Action中result的各种转发类型
- <Action>中<result>的各种转发类型
- Action中result的各种转发类型
- Action中result的各种转发类型
- Action中result的各种转发类型
- Action中result的各种转发类型
- 【Struts2学习笔记(2)】Action配置中的各项默认值和Action中result的各种转发类型
- struts2的框架解析第5篇action中result的各种转发类型
- 传智Struts2笔记(四)Action中result的各种转发类型
- 传智Struts2笔记(四)Action中result的各种转发类型
- struts.xml配置文件中action中的result的各种转发类型
- activity跳转黑屏处理
- 手势识别的整体流程分析
- cocos2d-x-3.1 vs 输出Log的几种方法 (coco2d-x 学习笔记三)
- msp430FR5739 FRAM的学习
- 深入理解GPU Architecture(上)
- Struts2 中,action中的result的各种转发类型
- jacob.dll already loaded in another classloader
- 从U盘运行Linux操作系统的三种方法
- awk 用法
- Unity3D占用内存太大的解决方法
- 即使潇洒都差点
- learn with python-第八章:列表
- struts2中常用的常量介绍
- Linux 下 PHP 扩展 PDO 编译安装