Action 跳转的方法和详解
来源:互联网 发布:淘宝物品拍摄技巧 编辑:程序博客网 时间:2024/06/10 03:49
在实际项目中,我们难免遇到页面跳转,传参,action与action之间的跳转,我们这时候则需要一些方法来完成,如下代码所示:
<action name="login" class="loginAction.class"> <result type="redirect" name="success">index.action</result></action>
关于action下result中的type属性值有三种:
默认为dispatcher(请求转发),跳转到相应的jsp页面,action中的数据一直保存着。地址栏的URL地址是不会发生改变的,是地址是不会变成: 例如刚开始是login.action,请求转发到index.jsp时,地址栏的地址还是原来的login.action。
redirect (重定向), 会重新获取地址,请求的地址会发生改变。action中的数据会丢失。
chain (连续、连接) 你要访问的下一个页面,会保存着你上一个页面的动作状态。
0 0
- Action 跳转的方法和详解
- struts2 action跳转action 的配置方法
- @result 注解详解 跳转不同的action
- struts2中action跳转到另一个action的方法
- struts1 从action跳转到另一个action的方法
- struts2中action跳转到另一个action的方法
- struts2中action跳转到另一个action的方法
- struts2中action跳转到另一个action的方法
- struts2中action跳转到另一个action的方法
- Struts2 action 跳转到 action 传值 方法
- action 之间的跳转
- Stuts Action中的跳转方法!
- struts2 result类型 跳转到其他action的方法
- 基于struts2 通过注解跳转到后台action的方法
- struts2实现只跳转,不用action类的方法
- Action跳转时,前后台参数传递的方法
- struts配置文件默认值及跳转Action的方法
- struts的Action里,跳转和重写URL带参数
- jni崩溃输出
- [LeetCode]Course Schedule II
- Android 7.0 Gallery图库源码分析3
- 昨天终于把《VISUAL C++ 2010入门经典_第5版(中文版)》看完一遍了
- css初步学习1——css格式,文字处理属性,颜色属性
- Action 跳转的方法和详解
- c语言中逗号运算符的作用
- Mybatis where in语句如何传参数
- 网络抓包工具Fiddler的使用
- 十条笑话:结账时要320元,于是我和老板讲价,说给300行不
- materiallDesign资料收集
- TensorFlow文本摘要生成
- 1004. 成绩排名 (20)
- leetcode 495 Teemo Attacking C++