zoukankan      html  css  js  c++  java
  • beginner3

    <!-- 生成验证码 -->
         <action name="rand" class="mainAction" method="rand">
             <result type="stream">     //默认返回为name=SUCCESS
                    <param name="contentType">image/jpeg</param>
                    <param name="inputName">inputStream</param>     
                </result>  
         </action>

    <action name="addRight" class="rightAction" method="addRight">   //一个action实现类有多个action
       <result type="redirectAction">     //默认返回为name=SUCCESS,跳转的action在同一个类中
          <param name="actionName">viewRight</param>   //跳转到另一个ACTION.
          <param name="rightid">${rightid}</param>    //参数传给了ACTION(rightAction)类的全局变量rightid
       </result>
       <result name="input">/roleright/addRight.jsp</result>   //jsp的第一个斜杠表示WebRoot目录
      </action>

    <action name="configUpload" class="mainAction" method="configUpload">
          <result type="redirectAction">toConfig</result>
    </action>

  • 相关阅读:
    HDU 1716 排列2
    HDU 3405 World Islands
    HDU 5624 KK's Reconstruction
    HDU 2689 Tree
    UVA 12075 Counting Triangles
    UVA 11100 The Trip, 2007
    [USACO 2004DEC] Navigation Nightmare
    [USACO 2017DEC] Barn Painting
    [Usaco2017 Dec] A Pie for a Pie
    [USACO 2017DEC] Greedy Gift Takers
  • 原文地址:https://www.cnblogs.com/yaowen/p/2935644.html
Copyright © 2011-2022 走看看