zoukankan      html  css  js  c++  java
  • struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result> java程序员

    struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
    
    Struts2支持的不同类型的返回结果为:
    
    Chain Result-->type="chain"
    用来处理Action链
    
    Dispatcher Result -->type="dispatcher"
    用来转向页面,通常处理JSP
    
    FreeMarker Result -->type="freemarker"
    处理FreeMarker模板
    
    HttpHeader Result -->type="httpheader"
    用来控制特殊的Http行为
    
    Redirect Result -->type="redirect"
    重定向到一个URL
    
    Redirect Action Result -->type="redirectAction"
    重定向到一个Action
    
    Stream Result -->type="stream"
    向浏览器发送InputSream对象,通常用来处理文件下载
    
    Velocity Result -->type="velocity"
    处理Velocity模板
    
    XLST Result -->type="xslt"
    处理XML/XLST模板
    
    PlainText Result -->type="plainText"
    显示原始文件内容,例如文件源代码
  • 相关阅读:
    k8s-istio记录
    k8s
    单词 -(动物)
    RxJs
    .netcore 3.1 unbuntu
    单词规整
    AutoMapper
    时间
    ye
    特殊权限
  • 原文地址:https://www.cnblogs.com/java20130725/p/3215684.html
Copyright © 2011-2022 走看看