Struts2 result 集类型列表
来源:互联网 发布:java web哪本书 编辑:程序博客网 时间:2024/06/01 09:09
原始文件在 struts-default.xml 文件中找。
1、Dispatcher 类型
说明:最常用的结果类型,也是struts框架默认的结果类型。
作用:转发
第一种写法:<result name="success">/resulttype/successDispatcher.jsp</result>第二种写法:<result name="success"><param name="location">/resulttype/successDispatcher.jsp</param></result>
2、Redirect 类型:
说明:如果用redirect类型,则在reuqest作用域的值不能传递到前台。
作用:重定向
<result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult"/>
3、redirectAction 类型:
说明:把结果类型重新定向到 action
可以接受两种参数:
a) actionName: action的名字
b) namespace: 命名空间
第一种方式:<result name="success" type="redirectAction"> resulttype/redirectactionAction.action </result>第二种方式:<result name="success" type="redirectAction"><!-- actionName:请求的action的路径namespace:如果不写,默认就是请求的action的路径,如果写,路径将被重新赋值--><param name="actionName">resulttype/redirectactionAction.action</param></result>
0 0
- Struts2 result 集类型列表
- 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类型
- SQL1047N The application is already connected to another database.
- apache https配置步骤
- csrf的介绍与预防
- 打包ipa文件
- android res之selector
- Struts2 result 集类型列表
- Android项目中使用Eclipse导出jar文件
- 【读书笔记】iOS-给模拟器相册增加图片
- 图文排版
- oracle数据库使用mybatis批量插入
- 使用YUI Compressor压缩JS和Css,批处理,右键,注册表,打包
- PowerBuilder中使用JDBC连接MYSQL 无法使用COUNT(*) MAX() 函数的处理
- maven中进行junit测试报class not found的问题
- Leetcode#73||Set Matrix Zeroes