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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? subscriptionform.java

?? 這是基于struts的用戶登錄程序
?? JAVA
字號:
/*
 * $Header: /home/cvs/jakarta-struts/src/example/org/apache/struts/webapp/example/SubscriptionForm.java,v 1.4 2003/01/11 03:08:23 jmitchell Exp $
 * $Revision: 1.4 $
 * $Date: 2003/01/11 03:08:23 $
 *
 * ====================================================================
 *
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution, if
 *    any, must include the following acknowlegement:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowlegement may appear in the software itself,
 *    if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Struts", and "Apache Software
 *    Foundation" must not be used to endorse or promote products derived
 *    from this software without prior written permission. For written
 *    permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache"
 *    nor may "Apache" appear in their names without prior written
 *    permission of the Apache Group.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 *
 */


package org.apache.struts.webapp.example;


import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


/**
 * 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>
 *
 * @author Craig R. McClanahan
 * @version $Revision: 1.4 $ $Date: 2003/01/11 03:08:23 $
 */

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 ActionError("error.host.required"));
	if ((username == null) || (username.length() < 1))
            errors.add("username",
                       new ActionError("error.username.required"));
	if ((password == null) || (password.length() < 1))
            errors.add("password",
                       new ActionError("error.password.required"));
	if ((type == null) || (type.length() < 1))
            errors.add("type",
                       new ActionError("error.type.required"));
	else if (!"imap".equals(type) && !"pop3".equals(type))
            errors.add("type",
                       new ActionError("error.type.invalid", type));

	return (errors);

    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产手机| 久久精品99国产国产精| 日韩一级成人av| 欧美色综合天天久久综合精品| 国产精品一卡二卡| 国产在线播放一区二区三区 | 国产精品综合一区二区| 日韩国产高清影视| 日韩国产一二三区| 日本欧美一区二区| 日本视频一区二区三区| 亚洲第一av色| 日韩精品午夜视频| 另类调教123区| 国产成人精品1024| 成人免费看黄yyy456| 99热国产精品| 欧美日韩综合在线免费观看| 欧美猛男gaygay网站| 日韩视频一区二区在线观看| 精品va天堂亚洲国产| 久久久综合精品| 欧美国产乱子伦| 亚洲一区在线视频观看| 婷婷丁香激情综合| 国产一区视频网站| 暴力调教一区二区三区| 91成人国产精品| 欧美一级电影网站| 国产色爱av资源综合区| 国产精品乱人伦| 亚洲一区二区在线视频| 麻豆91精品91久久久的内涵| 成人毛片在线观看| 91精品国产综合久久婷婷香蕉 | 日韩一区二区电影网| 精品久久免费看| 亚洲视频在线观看三级| 免费观看一级欧美片| 成人黄色大片在线观看| 67194成人在线观看| 国产精品久久久久久亚洲伦| 日韩欧美在线影院| 色欧美片视频在线观看 | 国产精品乱码久久久久久| 国产精品久久久久天堂| 日韩欧美卡一卡二| 亚洲精品视频免费观看| 日韩av在线发布| 国产一区二区视频在线播放| jizzjizzjizz欧美| 欧美三电影在线| 欧美一区二区视频在线观看2020 | 一区二区三区影院| 日韩国产欧美在线观看| 丁香婷婷深情五月亚洲| 久久综合资源网| 久久久久高清精品| 日韩电影在线观看一区| 国产精品77777| 色婷婷久久久亚洲一区二区三区| 日韩一区二区三区在线观看| 亚洲欧洲在线观看av| 亚洲v中文字幕| 成人黄色大片在线观看| 欧美一级二级三级乱码| 亚洲美女电影在线| 国产乱码精品一品二品| 欧美一区二区三区在线观看| 国产精品久久久久久久蜜臀| 久久99精品久久久久久久久久久久| 不卡的看片网站| 欧美日韩一区二区三区在线看| 中文字幕中文字幕在线一区| 蜜桃视频第一区免费观看| 欧美曰成人黄网| 国产精品私房写真福利视频| 日韩国产欧美在线观看| 在线视频综合导航| 中文字幕一区在线观看| 欧美美女一区二区在线观看| 亚洲天堂成人网| 成人午夜电影网站| 久久久国产精品麻豆| 久久精品国产秦先生| 欧美日韩三级在线| 亚洲国产美国国产综合一区二区| 成人av资源网站| 国产精品入口麻豆九色| 国产一区二区三区四区在线观看| 欧美一区二区网站| 美女脱光内衣内裤视频久久影院| 精品视频资源站| 亚洲综合色网站| 日本韩国一区二区三区| 亚洲欧美另类小说| 成人av网站大全| 中文在线一区二区| 成人黄色免费短视频| 国产亚洲综合色| 成人丝袜18视频在线观看| 国产欧美一区二区精品久导航| 国产不卡高清在线观看视频| 欧美激情在线一区二区三区| 丁香桃色午夜亚洲一区二区三区| 欧美激情一区二区| jlzzjlzz亚洲女人18| 亚洲乱码国产乱码精品精的特点| 成人aa视频在线观看| 日韩亚洲欧美高清| 国产999精品久久久久久绿帽| 国产日韩欧美综合一区| 99久久伊人网影院| 亚洲视频电影在线| 欧美色视频在线观看| 亚洲18色成人| 久久亚洲免费视频| av亚洲精华国产精华精华| 亚洲一区二区三区中文字幕| 欧美视频一区二区在线观看| 爽好多水快深点欧美视频| 欧美三级视频在线观看| 欧美日韩免费电影| 理论片日本一区| 亚洲欧美中日韩| 欧美日韩国产综合久久| 国产一区 二区 三区一级| 国产精品女上位| 欧美精选午夜久久久乱码6080| 激情成人综合网| 亚洲视频一区二区在线| 在线观看欧美精品| 成人黄色777网| 日本午夜精品视频在线观看 | 欧美激情一区三区| 欧美私人免费视频| 国产很黄免费观看久久| 亚洲一区在线观看免费观看电影高清 | 欧美国产在线观看| 欧美日韩一级视频| 成人性生交大片免费看在线播放| 亚洲电影一级片| 国产精品网曝门| 欧美精品一区在线观看| 欧美影院精品一区| 色网站国产精品| 国产精品 日产精品 欧美精品| 亚洲日本在线观看| 国产欧美日韩中文久久| 91精品国产综合久久久久久漫画| av动漫一区二区| 国产精品亚洲一区二区三区在线| 亚洲国产裸拍裸体视频在线观看乱了 | 午夜精品一区二区三区免费视频 | 欧美日韩专区在线| 色狠狠综合天天综合综合| 国产精品综合网| 久久99国产精品免费| 石原莉奈在线亚洲二区| 亚洲精品欧美综合四区| 日韩欧美二区三区| 99re亚洲国产精品| 成人福利电影精品一区二区在线观看| 日韩毛片视频在线看| 亚洲国产成人在线| 国产精品理论在线观看| 久久久影院官网| 精品国产乱码久久久久久老虎| 这里只有精品视频在线观看| 在线观看成人小视频| 色婷婷综合激情| 91麻豆蜜桃一区二区三区| 国产成人免费视频一区| 国产福利精品一区二区| 国产资源在线一区| 狠狠狠色丁香婷婷综合久久五月| 日本亚洲三级在线| 日韩va亚洲va欧美va久久| 一区二区三区视频在线看| 亚洲国产人成综合网站| 香蕉加勒比综合久久| 日韩中文字幕91| 色伊人久久综合中文字幕| a级精品国产片在线观看| 99这里只有精品| 欧美中文字幕一区二区三区| 99精品视频中文字幕| 99久久精品国产一区| 色94色欧美sute亚洲13| 欧美色图12p| 精品国产不卡一区二区三区| 久久综合狠狠综合久久激情 | 蜜桃91丨九色丨蝌蚪91桃色| 男男视频亚洲欧美| 国产毛片精品一区| 91丨九色丨蝌蚪丨老版| 波多野结衣91| 欧美不卡一二三| 国产精品色在线| 亚洲成人动漫精品|