亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? actionform.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: ActionForm.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 2000-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package org.apache.struts.action;


import java.io.Serializable;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.upload.MultipartRequestHandler;


/**
 * <p>An <strong>ActionForm</strong> is a JavaBean optionally associated with
 * one or more <code>ActionMappings</code>. Such a bean will have had its
 * properties initialized from the corresponding request parameters before
 * the corresponding <code>Action.execute</code> method is called.</p>
 *
 * <p>When the properties of this bean have been populated, but before the
 * <code>execute</code> method of the <code>Action</code> is called, this bean's
 * <code>validate</code> method will be called, which gives the bean a chance
 * to verify that the properties submitted by the user are correct and valid.
 * If this method finds problems, it returns an error messages object that
 * encapsulates those problems, and the controller servlet will return control
 * to the corresponding input form. Otherwise, the <code>validate</code>
 * method returns <code>null</code>, indicating that everything is acceptable
 * and the corresponding <code>Action.execute</code> method should be
 * called.</p>
 *
 * <p>This class must be subclassed in order to be instantiated. Subclasses
 * should provide property getter and setter methods for all of the bean
 * properties they wish to expose, plus override any of the public or
 * protected methods for which they wish to provide modified functionality.
 * </p>
 *
 * <p>Because ActionForms are JavaBeans, subclasses should also implement
 * <code>Serializable</code>, as required by the JavaBean specification.
 * Some containers require that an object meet all JavaBean requirements
 * in order to use the introspection API upon which ActionForms rely.</p>
 *
 * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
 */

public abstract class ActionForm implements Serializable {


    // ----------------------------------------------------- Instance Variables


    /**
     * <p>The servlet instance to which we are attached.</p>
     */
    protected transient ActionServlet servlet = null;


    /**
     * <p>The MultipartRequestHandler for this form, can be
     * <code>null</code>.</p>
     */
    protected transient MultipartRequestHandler multipartRequestHandler;


    // ------------------------------------------------------------- Properties


    /**
     * <p>Return the servlet instance to which we are attached.</p>
     */
    protected ActionServlet getServlet() {

        return (this.servlet);

    }


    /**
     * <p>Return the controller servlet instance to which we are attached.
     * as an <code>ActionServletWrapper</code>.</p>
     *
     * @see org.apache.struts.action.ActionServletWrapper
     * @since Struts 1.0.1
     */
    public ActionServletWrapper getServletWrapper() {

        return new ActionServletWrapper(getServlet());

    }


    /**
     * <p>Return the <code>MultipartRequestHandler</code> for this form
     * The reasoning behind this is to give form bean developers
     * control over the lifecycle of their multipart requests
     * through the use of the <code>finish</code> and/or <code>rollback</code>
     * methods of <code>MultipartRequestHandler</code>.  This method will return
     * <code>null</code> if this form's enctype is not
     * "multipart/request-data".</p>
     *
     * @see org.apache.struts.upload.MultipartRequestHandler
     */
    public MultipartRequestHandler getMultipartRequestHandler() {
        return multipartRequestHandler;
    }


    /**
     * <p>Set the servlet instance to which we are attached (if
     * <code>servlet</code> is non-null), or release any allocated resources
     * (if <code>servlet</code> is null).</p>
     *
     * @param servlet The new controller servlet, if any
     */
    public void setServlet(ActionServlet servlet) {

        this.servlet = servlet;
            // :FIXME: Should this be releasing resources?

    }


    /**
     * <p>Set the Handler provides to use in dealing with file uploads.</p>
     *
     * @param multipartRequestHandler The Handler to use for fileuploads.
     */
    public void setMultipartRequestHandler(MultipartRequestHandler multipartRequestHandler) {

        this.multipartRequestHandler = multipartRequestHandler;

    }

    // --------------------------------------------------------- Public Methods


    /**
     * <p>Reset all bean properties to their default state.  This method is
     * called before the properties are repopulated by the controller.</p>
     *
     * <p>The default implementation attempts to forward to the HTTP
     * version of this method.</p>
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public void reset(ActionMapping mapping, ServletRequest request) {

        try {
            reset(mapping, (HttpServletRequest) request);
        } catch (ClassCastException e) {
            ;//FFIXME: Why would this every happen except a null
        }

    }


    /**
     * <p>Reset bean properties to their default state, as needed.  This method is
     * called before the properties are repopulated by the controller.</p>
     *
     * <p>The default implementation does nothing. In practice, the only properties
     * that need to be reset are those which represent checkboxes on a session-scoped
     * form. Otherwise, properties can be given initial values where the field is
     * declared. </p>
     *
     * <p>If the form is stored in session-scope so that values can be collected
     * over multiple requests (a "wizard"), you must be very careful of which
     * properties, if any, are reset. As mentioned, session-scope checkboxes
     * must be reset to false for any page where this property is set. This is
     * because the client does not submit a checkbox value when it is clear (false).
     * If a session-scoped checkbox is not proactively reset, it can never be set
     * to false.</p>
     *
     * <p>This method is <strong>not</strong> the appropriate place to initialize
     * form value for an "update" type page (this should be done in a setup Action).
     * You mainly need to worry about setting checkbox values to false; most of the
     * time you can leave this method unimplemented.
     * </p>
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {

        ;       // Default implementation does nothing

    }


    /**
     * <p>Validate the properties that have been set for this non-HTTP request,
     * and return an <code>ActionErrors</code> object that encapsulates any
     * validation errors that have been found. If no errors are found, return
     * <code>null</code> or an <code>ActionErrors</code> object with no
     * recorded error messages.</p>
     *
     * <p>The default implementation attempts to forward to the HTTP version of
     * this method.</p>
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public ActionErrors validate(ActionMapping mapping,
                                 ServletRequest request) {

        try {
            return (validate(mapping, (HttpServletRequest) request));
        } catch (ClassCastException e) {
            return (null);
        }

    }


    /**
     * <p>Validate the properties that have been set for this HTTP request,
     * and return an <code>ActionErrors</code> object that encapsulates any
     * validation errors that have been found. If no errors are found,
     * return <code>null</code> or an <code>ActionErrors</code> object with
     * no recorded error messages.</p>
     *
     * <p>The default implementation performs no validation and returns
     * <code>null</code>. Subclasses must override this method to provide
     * any validation they wish to perform.</p>
     *
     * @see DynaActionForm
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        return (null);

    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美国欧美日韩国产在线播放| 成人国产精品免费| 裸体在线国模精品偷拍| 国产真实乱对白精彩久久| 国产精品一线二线三线精华| fc2成人免费人成在线观看播放| 色综合久久久网| 91精品国产综合久久久久久久 | 国产精品久久夜| 亚洲精品亚洲人成人网在线播放| 亚洲第一成年网| 韩日精品视频一区| 不卡的av中国片| 日韩亚洲电影在线| 亚洲欧洲在线观看av| 人人精品人人爱| av一区二区不卡| 欧美一区二区精品| 中文字幕一区二| 亚欧色一区w666天堂| 国产一区欧美一区| 欧美日韩一区二区不卡| 国产亚洲成av人在线观看导航| 亚洲视频在线一区观看| 美女视频网站黄色亚洲| 91免费在线看| 久久久午夜精品| 舔着乳尖日韩一区| 成人激情开心网| 精品日本一线二线三线不卡| 一区在线中文字幕| 喷水一区二区三区| av在线免费不卡| 精品国产亚洲在线| 亚洲二区视频在线| 99久久夜色精品国产网站| 日韩欧美在线综合网| 亚洲欧美一区二区久久| 国产一区久久久| 制服丝袜国产精品| 亚洲精品亚洲人成人网| 波波电影院一区二区三区| 精品免费视频一区二区| 天天综合色天天综合色h| 99国产精品99久久久久久| 国产亚洲一本大道中文在线| 日本不卡一区二区| 欧美日韩一区二区三区在线| 亚洲人成电影网站色mp4| 久久av中文字幕片| 欧美三级电影在线看| 国产精品视频线看| 国产盗摄女厕一区二区三区| 日韩视频一区在线观看| 性欧美大战久久久久久久久| 91日韩在线专区| 国产精品久久久久四虎| 国产在线精品视频| 欧美精品一区二区三区蜜臀| 免费在线观看日韩欧美| 538在线一区二区精品国产| 国产精品精品国产色婷婷| 国内精品第一页| 日韩欧美电影一区| 蜜桃免费网站一区二区三区| 欧美日韩国产在线观看| 一区二区三区久久久| 91在线观看下载| 亚洲婷婷综合色高清在线| 丁香亚洲综合激情啪啪综合| 久久久久久亚洲综合影院红桃| 精品亚洲免费视频| 精品国偷自产国产一区| 韩国精品免费视频| 日韩欧美中文一区| 日韩av在线发布| 日韩欧美国产三级| 黄网站免费久久| 欧美电影精品一区二区| 免费在线观看日韩欧美| 精品国产乱码久久久久久蜜臀| 麻豆一区二区在线| 久久影院视频免费| 国产东北露脸精品视频| 中文字幕亚洲成人| 日本道精品一区二区三区| 亚洲美女视频一区| 色综合久久综合| 亚洲综合视频在线观看| 欧美日韩亚洲综合在线| 天天综合网天天综合色| 欧美不卡一区二区三区四区| 国产综合色产在线精品| 国产精品天美传媒沈樵| 一本一道波多野结衣一区二区| 亚洲一区二区在线观看视频| 91精品麻豆日日躁夜夜躁| 久久99久久99| 国产精品美女久久久久av爽李琼| 成人精品免费网站| 亚洲激情一二三区| 制服丝袜亚洲播放| 国产在线精品一区二区| 中文字幕综合网| 欧美三级欧美一级| 国产一区二区三区不卡在线观看| 欧美国产日产图区| 在线视频国内自拍亚洲视频| 美洲天堂一区二卡三卡四卡视频 | 国产91在线|亚洲| 亚洲欧美日韩电影| 欧美一卡2卡三卡4卡5免费| 日本va欧美va欧美va精品| 久久影院午夜片一区| 91老司机福利 在线| 日韩成人一区二区| 中文字幕av一区二区三区| 欧美亚洲日本一区| 久久国产乱子精品免费女| 国产精品久久久久久妇女6080| 91久久精品一区二区| 日韩av高清在线观看| 国产精品久久久久久亚洲伦| 欧美久久久久免费| 成人理论电影网| 亚洲综合一区二区三区| 日韩欧美成人一区二区| 成人高清视频免费观看| 欧美aⅴ一区二区三区视频| 国产精品无遮挡| 日韩午夜激情视频| 色偷偷久久人人79超碰人人澡| 天天av天天翘天天综合网| 国产精品视频一二三区| 在线不卡一区二区| eeuss鲁一区二区三区| 精品一区二区三区免费| 亚洲国产精品麻豆| 中文字幕精品一区二区三区精品| 欧美色国产精品| 成人免费视频国产在线观看| 日韩国产欧美在线观看| 欧美激情在线观看视频免费| 色狠狠av一区二区三区| 国产一区免费电影| 日韩激情av在线| 亚洲免费av网站| 日本一区二区成人在线| 精品久久人人做人人爰| 欧美三级中文字幕| 91在线视频观看| 国产成人精品在线看| 日本成人在线视频网站| 性欧美疯狂xxxxbbbb| 亚洲美女视频在线观看| 国产精品高潮久久久久无| 久久亚洲捆绑美女| 日韩美女天天操| 91精品国产欧美日韩| 欧美日韩在线播放三区四区| 91视频免费播放| www.亚洲色图.com| 欧美大度的电影原声| 水蜜桃久久夜色精品一区的特点| 国产精品久久久久久亚洲伦 | 丝袜亚洲另类丝袜在线| 1024国产精品| 国产精品毛片大码女人| 久久综合色天天久久综合图片| 91精品国产麻豆| 欧美精品丝袜中出| 欧美日韩视频第一区| 欧洲国内综合视频| 在线一区二区三区做爰视频网站| www.日韩精品| 不卡区在线中文字幕| 国产99久久久国产精品免费看 | 国产欧美精品国产国产专区| 欧美一区二区女人| 欧美日韩一区精品| 欧美区一区二区三区| 欧美人牲a欧美精品| 欧美日韩精品一区二区在线播放| 欧美亚洲国产一区二区三区va| 91蜜桃免费观看视频| 91色|porny| 欧洲亚洲国产日韩| 欧美日韩三级在线| 欧美日韩亚洲综合一区| 欧美精品777| 欧美一区二区三区色| 欧美不卡在线视频| 国产婷婷一区二区| 国产精品久久久久久久久免费丝袜| 2023国产精华国产精品| 精品少妇一区二区三区视频免付费| 精品精品国产高清一毛片一天堂| 国产日韩三级在线| **欧美大码日韩| 亚洲成a人v欧美综合天堂|