zoukankan      html  css  js  c++  java
  • result type

    <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-types>  

    chain 用来处理Action链 
    dispatcher 用来转向页面,通常处理JSP 
    freemarker 处理FreeMarker模板 
    tttpheader 用来控制特殊的Http行为 
    redirect 重定向到一个URL 
    redirectAction 重定向到一个Action 
    stream 向浏览器发送InputSream对象,通常用来处理文件下载 
    velocity 处理Velocity模板 
    xslt 处理XML/XLST模板 
    plainText 显示原始文件内容,例如文件源代码  

  • 相关阅读:
    Linux 内核中的 Device Mapper 机制
    阿里云 Angular 2 UI框架 NG-ZORRO介绍
    Docker容器 暴露多个端口
    修改docker容器的端口映射
    Ubuntu Docker安装
    Docker容器技术的PaaS云平台架构设计***
    scala 学习笔记三 闭包
    scala 学习笔记二 方法与函数
    scala 学习笔记一 列表List
    Python3 写Windows Service服务程序
  • 原文地址:https://www.cnblogs.com/ermeng/p/6548357.html
Copyright © 2011-2022 走看看