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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? subscriptionform.java

?? struts的源代碼
?? JAVA
字號(hào):
/*
 * $Id: SubscriptionForm.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 1999-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.webapp.example;


import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;


/**
 * Form bean for the user profile page.  This form has the following fields,
 * with default values in square brackets:
 * <ul>
 * <li><b>action</b> - The maintenance action we are performing (Create, Delete,
 *     or Edit).
 * <li><b>host</b> - The mail host for this subscription.  [REQUIRED]
 * <li><b>password</b> - The password for this subscription.  [REQUIRED]
 * <li><b>type</b> - The subscription type (imap,pop3)
       for this subscription.  [REQUIRED]
 * <li><b>username</b> - The username of this subscription.  [REQUIRED]
 * </ul>
 *
 * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
 */

public final class SubscriptionForm extends ActionForm {


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


    /**
     * The maintenance action we are performing (Create or Edit).
     */
    private String action = "Create";


    /**
     * Should we auto-connect at startup time?
     */
    private boolean autoConnect = false;


    /**
     * The host name.
     */
    private String host = null;


    /**
     * The password.
     */
    private String password = null;


    /**
     * The subscription type.
     */
    private String type = null;


    /**
     * The username.
     */
    private String username = null;


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


    /**
     * Return the maintenance action.
     */
    public String getAction() {

	return (this.action);

    }


    /**
     * Set the maintenance action.
     *
     * @param action The new maintenance action.
     */
    public void setAction(String action) {

        this.action = action;

    }


    /**
     * Return the auto-connect flag.
     */
    public boolean getAutoConnect() {

        return (this.autoConnect);

    }


    /**
     * Set the auto-connect flag.
     *
     * @param autoConnect The new auto-connect flag
     */
    public void setAutoConnect(boolean autoConnect) {

        this.autoConnect = autoConnect;
    }


    /**
     * Return the host name.
     */
    public String getHost() {

	return (this.host);

    }


    /**
     * Set the host name.
     *
     * @param host The host name
     */
    public void setHost(String host) {

        this.host = host;

    }


    /**
     * Return the password.
     */
    public String getPassword() {

	return (this.password);

    }


    /**
     * Set the password.
     *
     * @param password The new password
     */
    public void setPassword(String password) {

        this.password = password;

    }


    /**
     * Return the subscription type.
     */
    public String getType() {

	return (this.type);

    }


    /**
     * Set the subscription type.
     *
     * @param type The subscription type
     */
    public void setType(String type) {

        this.type = type;

    }


    /**
     * Return the username.
     */
    public String getUsername() {

	return (this.username);

    }


    /**
     * Set the username.
     *
     * @param username The new username
     */
    public void setUsername(String username) {

        this.username = username;

    }


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


    /**
     * Reset all properties to their default values.
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {

        this.action = "Create";
        this.autoConnect = false;
        this.host = null;
        this.password = null;
        this.type = null;
        this.username = null;

    }


    /**
     * Validate the properties that have been set from 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.
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();

	if ((host == null) || (host.length() < 1))
            errors.add("host",
                       new ActionMessage("error.host.required"));
	if ((username == null) || (username.length() < 1))
            errors.add("username",
                       new ActionMessage("error.username.required"));
	if ((password == null) || (password.length() < 1))
            errors.add("password",
                       new ActionMessage("error.password.required"));
	if ((type == null) || (type.length() < 1))
            errors.add("type",
                       new ActionMessage("error.type.required"));
	else if (!"imap".equals(type) && !"pop3".equals(type))
            errors.add("type",
                       new ActionMessage("error.type.invalid", type));

	return (errors);

    }


}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品在线播放| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | k8久久久一区二区三区| 欧美激情一二三区| 国产高清成人在线| 国产精品盗摄一区二区三区| 99vv1com这只有精品| 欧美激情一区三区| www.亚洲人| 亚洲精品视频一区二区| 欧美日韩一区二区三区在线| 国产欧美日韩三级| 国产精一品亚洲二区在线视频| 精品国产第一区二区三区观看体验| 久久精品国产久精国产| 欧美午夜一区二区三区| 亚洲制服丝袜av| av动漫一区二区| 日韩一区在线看| 欧美日韩一区二区欧美激情| 天天综合网 天天综合色| 欧美电影精品一区二区| 国产福利一区二区三区视频| 曰韩精品一区二区| 欧美精三区欧美精三区 | 青青草精品视频| 欧美日韩日日摸| 激情成人午夜视频| 欧美电影免费观看高清完整版在线| 国产成人啪午夜精品网站男同| 国产精品久久久久天堂| 欧美精品自拍偷拍动漫精品| 黄色小说综合网站| 亚洲精品免费在线观看| 91精品免费在线观看| 成人黄色网址在线观看| 亚洲国产视频在线| 91精品国产高清一区二区三区蜜臀| 国产精品一区二区在线观看不卡| 国产精品国产三级国产aⅴ无密码| 91成人在线精品| 久久99精品国产麻豆婷婷| 成人欧美一区二区三区视频网页 | 成人精品小蝌蚪| 一区二区欧美国产| 国产日本欧美一区二区| 91国产丝袜在线播放| 国产精品自拍毛片| 亚洲成人高清在线| 精品区一区二区| 色综合久久久久综合| 久久精品国产久精国产| 午夜影院久久久| 国产精品视频你懂的| 欧美xingq一区二区| 91视频观看视频| 国产成人一级电影| 婷婷综合久久一区二区三区| 亚洲视频一区二区在线| 欧美本精品男人aⅴ天堂| www.成人在线| 成人免费看的视频| 久久av资源网| 蜜桃传媒麻豆第一区在线观看| 亚洲天堂网中文字| 国产欧美精品国产国产专区| 欧美一区二区黄色| 91精品午夜视频| 欧美影视一区二区三区| 91蜜桃婷婷狠狠久久综合9色| 国产自产2019最新不卡| 视频一区二区三区中文字幕| 亚洲成人动漫精品| 亚洲男同性视频| 中文字幕国产精品一区二区| 欧美成人精品3d动漫h| 欧美性猛交xxxx乱大交退制版 | 在线播放日韩导航| 国产综合色在线视频区| 国产麻豆欧美日韩一区| 日本三级亚洲精品| 日本欧美加勒比视频| 亚洲国产综合色| 亚洲va韩国va欧美va精品| 亚洲精品免费一二三区| 一区二区三区四区不卡在线 | av在线一区二区| 成人精品一区二区三区四区| 午夜成人在线视频| 亚洲国产精品久久久男人的天堂| 亚洲靠逼com| 亚洲一区二区在线免费看| 亚洲自拍偷拍麻豆| 午夜视频一区二区三区| 亚洲韩国一区二区三区| 麻豆精品一二三| 久久99热这里只有精品| 国产精品一区二区三区网站| 国产乱码精品一区二区三区五月婷| 天天色天天操综合| 免费高清在线一区| 精品亚洲成a人| 国产福利精品一区| 精品无码三级在线观看视频| 国产成人自拍网| 99国产精品视频免费观看| 欧美羞羞免费网站| 91麻豆精品国产无毒不卡在线观看| 日韩一级高清毛片| 欧美mv日韩mv国产网站app| 国产精品亲子伦对白| 综合激情成人伊人| 午夜伦理一区二区| 久久99精品久久久久久动态图| 国产盗摄一区二区| 91看片淫黄大片一级| 欧美福利视频导航| 欧美一个色资源| 国产色婷婷亚洲99精品小说| 自拍偷拍亚洲欧美日韩| 青青草视频一区| 成人av集中营| 日韩一区二区三区高清免费看看| 国产日韩三级在线| 日韩成人av影视| 国产成人在线免费| 欧美一区二区三区在线观看视频 | 一二三区精品福利视频| 久久精品国产99久久6| 成人av电影在线观看| 欧美日韩精品久久久| 国产欧美综合在线观看第十页| 亚洲欧美国产毛片在线| 美女网站在线免费欧美精品| 成人永久aaa| 91精品国产综合久久香蕉的特点 | 国产精品国产精品国产专区不蜜| 亚洲高清免费在线| 成人亚洲一区二区一| 欧美狂野另类xxxxoooo| 国产精品国产精品国产专区不蜜 | 欧美日韩激情在线| 亚洲欧美综合在线精品| 久久国产剧场电影| 欧美日韩视频专区在线播放| 欧美国产精品中文字幕| 久久精品国产一区二区三区免费看| av亚洲精华国产精华| 国产婷婷色一区二区三区在线| 亚洲美女淫视频| 成人午夜大片免费观看| 日韩欧美精品在线视频| 视频在线观看91| 91精品91久久久中77777| 欧美国产日韩一二三区| 麻豆精品视频在线观看免费| 欧美日韩dvd在线观看| 亚洲三级电影网站| 99久久综合国产精品| 亚洲精品在线一区二区| 免费在线观看视频一区| 欧美日韩国产经典色站一区二区三区| 国产精品久久久99| 国产91丝袜在线播放0| 一本到不卡精品视频在线观看| 国产无人区一区二区三区| 精品一区二区三区日韩| 99久久精品免费看国产| 国产综合成人久久大片91| 日本不卡一区二区三区 | 国产成人夜色高潮福利影视| 国产精品18久久久久久久网站| 亚洲一区中文在线| 国产午夜精品福利| www成人在线观看| 9191久久久久久久久久久| 欧美色老头old∨ideo| 91黄色免费网站| 欧美午夜一区二区三区| 欧美日韩综合在线| 色综合久久88色综合天天6| 国产成人av福利| 不卡一区二区中文字幕| 一本久久精品一区二区| 91香蕉视频在线| 色婷婷亚洲一区二区三区| 91成人在线精品| 亚洲成人av一区| 无码av免费一区二区三区试看| 一级女性全黄久久生活片免费| 亚洲影视在线播放| 亚洲一区二区视频| 日韩在线一区二区三区| 国产一区二区免费视频| 9色porny自拍视频一区二区| 欧美日本在线播放| 久久亚洲精华国产精华液| 亚洲一区在线播放| 国产一区二区精品久久| 91丨porny丨在线|