zoukankan      html  css  js  c++  java
  • struts2 action result type类型

    struts2 action result type类型  

     

    1.chain:用来处理Action链,被跳转的action中仍能获取上个页面的值,如request信息。   

        com.opensymphony.xwork2.ActionChainResult   

      

    2.dispatcher:用来转向页面,通常处理JSP   

        org.apache.struts2.dispatcher.ServletDispatcherResult   

      

    3.freemaker:处理FreeMarker模板   

        org.apache.struts2.views.freemarker.FreemarkerResult   

      

    4.httpheader:控制特殊HTTP行为的结果类型  

        org.apache.struts2.dispatcher.HttpHeaderResult  

    5.stream:向浏览器发送InputSream对象,用来处理文件下载,还可用于返回AJAX数据   

        org.apache.struts2.dispatcher.StreamResult   

      

    6.velocity :处理Velocity模板   

        org.apache.struts2.dispatcher.VelocityResult   

      

    7.xsl:

        处理XML/XLST模板   

        org.apache.struts2.views.xslt.XSLTResult   

      

    8.plaintext:显示原始文件内容,例如文件源代码   

        org.apache.struts2.dispatcher.PlainTextResult   

      

    9.redirect:重定向到一个URL ,被跳转的页面中丢失传递的信息,如request 

        org.apache.struts2.dispatcher.ServletRedirectResult   

      

    10.redirectAction :重定向到一个Action ,跳转的页面中丢失传递的信息,如request     

        org.apache.struts2.dispatcher.ServletActionRedirectResult   

      

    11.redirect-action:重定向到一个Action ,跳转的页面中丢失传递的信息,如request     

        org.apache.struts2.dispatcher.ServletActionRedirectResult

  • 相关阅读:
    观察OnPaint与OnIdle与OnSize事件
    wxPython的Refresh与事件双重响应
    DLL的静态调用和动态调用
    Delphi String的散漫记录,真是知识无数,陷阱无数
    VC调用Delphi DLL
    终于理解了什么是LGPL
    安装postgresql碰到Unable to write inside TEMP environment path
    图解:Activity生命周期
    Dephi泛型
    传递双重指针申请内存,典型用法
  • 原文地址:https://www.cnblogs.com/zmc/p/3419215.html
Copyright © 2011-2022 走看看