struts.xml(三)<result>标签详解,跳转
来源:互联网 发布:手机淘宝卖家中心在哪? 编辑:程序博客网 时间:2024/06/06 15:45
Struts2中web组件的跳转
## Action--->JSP
1.Struts2默认 forward跳转
2.重定向(sendRedirect)
<result name='' type='redirect'>重定向选择的跳转视图JSP</result>
3.请求转发(forward)
<result name='' type='dispatcher'>请求转发的jsp</result>
## Action--->Action
1.请求转发forward'
chain:链
<result name='' type='chain'>目标的action的name,不要加/</result>
①指定type为chain
②result标签体写目标的action名字,不要有/
2.重定向sendRedirect
<result name='' type='redirectAction'>目标action的名字</result>
## Action--->Action跨package跳转(跨namespace)
Action---Action
<result name='aa' type='action跳转action的方式'>
<param name="namespace">目标的action所在包的namespace </param>
<param name="actionName">当前namespace的目标action的名字</param>
## Action--->JSP
1.Struts2默认 forward跳转
2.重定向(sendRedirect)
<result name='' type='redirect'>重定向选择的跳转视图JSP</result>
3.请求转发(forward)
<result name='' type='dispatcher'>请求转发的jsp</result>
## Action--->Action
1.请求转发forward'
chain:链
<result name='' type='chain'>目标的action的name,不要加/</result>
①指定type为chain
②result标签体写目标的action名字,不要有/
2.重定向sendRedirect
<result name='' type='redirectAction'>目标action的名字</result>
## Action--->Action跨package跳转(跨namespace)
Action---Action
<result name='aa' type='action跳转action的方式'>
<param name="namespace">目标的action所在包的namespace </param>
<param name="actionName">当前namespace的目标action的名字</param>
</result>
0 0
- struts.xml(三)<result>标签详解,跳转
- struts.xml中result标签不能跳转到指定页面问题
- 页面跳转,特别是struts.xml中result带参数实现
- struts配置文件struts.xml三个元素package,action,result详解
- struts.xml常用标签详解
- struts.xml中的Result标签的type属性
- Result Type(struts.xml配置)
- struts框架中struts.xml中action标签中result标签的两个常用属性
- struts.xml文件中<result>的type属性详解
- Struts2中struts.xml配置文件,result配置详解
- Struts 2 struts.xml详解(三)
- struts.xml(一)的<action-mappings>标签详解
- Struts配置之全局跳转视图(global-result)
- struts.xml中的标签及属性详解
- struts.xml的result类型
- struts.xml详解(续三) struts2的constant配置
- Struts2学习笔记(三):struts.xml文件详解
- struts.xml中result标签的/xxx.jsp与xxx.jsp的区别
- HTTP/2.0与HTTP/1.1协议区别
- @RequestBody 和@ResponseBody 注解详解
- GreenDAO简介
- spring学习总结(三)
- hdoj 5137 How Many Maos Does the Guanxi Worth (最短路--Floyd)
- struts.xml(三)<result>标签详解,跳转
- WindowShell for Telnet
- Android Studio搭建OpenCV环境
- 合并排序算法
- 区域卫生平台用户分析
- 课时43|封装-方法重载,包的实现和利用
- 动态内存
- Evtsys windows 转换syslog
- 反射效果,自己公司内部编码,在text上输入内容后,通过输入内容查询数据库,弹出下拉框