1.结果集

转发
重定向
转发Action
重定向Action
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd"> <struts>
<!-- 是否开启开发模式
struts.enable.DynamicMethodInvocation = false
-->
<constant name="struts.enable.DynamicMethodInvocation" value="true"></constant> <package name="result" namespace="/" extends="struts-default">
<!-- 转发 -->
<action name="Demo1Action" class="com.legend.action.Demo1Action" method="execute">
<result name="success" type="dispatcher">/hello.jsp</result>
</action> <!-- 重定向 -->
<action name="Demo2Action" class="com.legend.action.Demo2Action" method="execute">
<result name="success" type="redirect">/hello.jsp</result>
</action> <!-- 转发到action -->
<action name="Demo3Action" class="com.legend.action.Demo3Action" method="execute">
<result type="chain">
<!-- action的名字 -->
<param name="actionName">Demo1Action</param>
<!-- action所在的命名空间 -->
<param name="namespace">/</param>
</result>
</action> <!-- 转发到action -->
<action name="Demo4Action" class="com.legend.action.Demo4Action" method="execute">
<result type="redirectAction">
<!-- action的名字 -->
<param name="actionName">Demo1Action</param>
<!-- action所在的命名空间 -->
<param name="namespace">/</param>
</result>
</action>
</package> <!-- 引入xml文件 -->
<include file="com/legend/b_api/struts.xml"></include>
<include file="com/legend/c_param/struts.xml"></include>
</struts>

最新文章

  1. active_record的不定时更新
  2. Immutable笔记
  3. ios选取相册视频,过滤掉所有图片!
  4. 挂载NFS
  5. Rails :.nil? , .empty?, .blank? .present? 的区别
  6. the bundle at bundle path is not signed using an apple submission certificate
  7. Android-动画简介
  8. windows2008安装IIS
  9. 单据类型BE构建
  10. p235习题1
  11. 关于PushKit的使用总结
  12. centos7 修改selinux 开机导致 faild to load SELinux policy freezing 错误
  13. 读懂IL代码(二)
  14. (转载)PHP array_merge() 函数
  15. Spring3.0学习笔记文档的官方网站(六)--3.4.1
  16. SVG基础以及使用Javascript DOM操作SVG
  17. java-生成任意格式的json数据
  18. eclipse修改默认workspace
  19. api-gateway实践(02)新服务网关 - 运行环境
  20. mybatis进阶--输入映射和输出映射

热门文章

  1. 从指定Dictionary中移除指定值项
  2. python作业1.1,编写登录模块
  3. e.target和e.event和event.srcElement
  4. 深入理解JavaScript系列(12):变量对象(Variable Object)
  5. select操作大全
  6. 用ECMAscript5中的forEach函数遍历数组
  7. 通过js操作样式(评分)
  8. 05.while循环的练习
  9. Android使用主题属性引发的问题
  10. mpvue自定义化后台富文本样式