Struts.xml 中的11种Result-Type类型
来源:互联网 发布:杰科网络电视机顶盒r1 编辑:程序博客网 时间:2024/04/30 11:01
struts核心包版本:struts2-core-2.3.16.3.jar
<result-types> <result-type name="chain" class="com.opensymphony.xwork2.ActionChainResult"/> <result-type name="dispatcher" class="org.apache.struts2.dispatcher.ServletDispatcherResult" default="true"/> <result-type name="freemarker" class="org.apache.struts2.views.freemarker.FreemarkerResult"/> <result-type name="httpheader" class="org.apache.struts2.dispatcher.HttpHeaderResult"/> <result-type name="redirect" class="org.apache.struts2.dispatcher.ServletRedirectResult"/> <result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult"/> <result-type name="stream" class="org.apache.struts2.dispatcher.StreamResult"/> <result-type name="velocity" class="org.apache.struts2.dispatcher.VelocityResult"/> <result-type name="xslt" class="org.apache.struts2.views.xslt.XSLTResult"/> <result-type name="plainText" class="org.apache.struts2.dispatcher.PlainTextResult" /> <result-type name="postback" class="org.apache.struts2.dispatcher.PostbackResult" /> </result-types>
总类型11种。
类型探究:
- dispatcher。请求转发。
【Note】:
- dispatcher只是请求转发,只能在本项目应用中使用,不能转发到外部资源。如果需要跨应用访问资源,需要使用重定向
0 0
- Struts.xml 中的11种Result-Type类型
- struts.xml中的Result标签的type属性
- struts.xml的result类型
- Result Type(struts.xml配置)
- struts配置文件中的result的type
- struts2 中result中的type类型说明
- struts2.xml中的result type属性说明
- struts2.xml 中的result标签type属性
- struts中的结果集类型Result
- struts result type
- struts 2 result type
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts-default.xml中的result配置
- struts.xml配置文件中action中的result的各种转发类型
- struts.xml文件中<result>的type属性详解
- Struts.xml <result>中type的几种属性
- Android Studio SVN的使用
- JavaScript 学习
- JAVA 异常处理
- c++ 指针(一)及sprintf函数
- poj 1185 炮兵阵地(状压dp)
- Struts.xml 中的11种Result-Type类型
- 《数据结构》 循环链表和双向链表常用操作代码集合
- jQuery学习笔记——选择器2
- IT行业导览-第3章-相关职位
- 公有的、私有的、受保护的继承
- 3998: [TJOI2015]弦论 后缀自动机
- BZOJ 3531 SDOI2014 旅行(travel) 树链剖分模板题
- Observable和Observer
- 全排列 枚举