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

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

?? testbean.java

?? 學習struts標簽庫,里面隨帶了相關的演示程序代碼,非常好學.
?? JAVA
字號:
/*
 * $Header: /home/cvs/jakarta-struts/src/exercise-taglib/org/apache/struts/webapp/exercise/TestBean.java,v 1.8 2002/10/12 19:21:18 martinc Exp $
 * $Revision: 1.8 $
 * $Date: 2002/10/12 19:21:18 $
 *
 * ====================================================================
 *
 * 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.exercise;


import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;


/**
 * General purpose test bean for Struts custom tag tests.
 *
 * @author Craig R. McClanahan
 * @author Martin F N Cooper
 * @version $Revision: 1.8 $ $Date: 2002/10/12 19:21:18 $
 */

public class TestBean extends ActionForm {


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


    /**
     * A collection property where the elements of the collection are
     * of type <code>LabelValueBean</code>.
     */
    private Collection beanCollection = null;

    public Collection getBeanCollection() {
        if (beanCollection == null) {
            Vector entries = new Vector(10);

            entries.add(new LabelValueBean("Label 0", "Value 0"));
            entries.add(new LabelValueBean("Label 1", "Value 1"));
            entries.add(new LabelValueBean("Label 2", "Value 2"));
            entries.add(new LabelValueBean("Label 3", "Value 3"));
            entries.add(new LabelValueBean("Label 4", "Value 4"));
            entries.add(new LabelValueBean("Label 5", "Value 5"));
            entries.add(new LabelValueBean("Label 6", "Value 6"));
            entries.add(new LabelValueBean("Label 7", "Value 7"));
            entries.add(new LabelValueBean("Label 8", "Value 8"));
            entries.add(new LabelValueBean("Label 9", "Value 9"));

            beanCollection = entries;
        }

        return (beanCollection);
    }

    public void setBeanCollection(Collection beanCollection) {
        this.beanCollection = beanCollection;
    }


    /**
     * A multiple-String SELECT element using a bean collection.
     */
    private String[] beanCollectionSelect = { "Value 1", "Value 3",
                                              "Value 5" };

    public String[] getBeanCollectionSelect() {
        return (this.beanCollectionSelect);
    }

    public void setBeanCollectionSelect(String beanCollectionSelect[]) {
        this.beanCollectionSelect = beanCollectionSelect;
    }


    /**
     * A boolean property whose initial value is true.
     */
    private boolean booleanProperty = true;

    public boolean getBooleanProperty() {
        return (booleanProperty);
    }

    public void setBooleanProperty(boolean booleanProperty) {
        this.booleanProperty = booleanProperty;
    }


    /**
     * A multiple-String SELECT element using a collection.
     */
    private String[] collectionSelect = { "Value 2", "Value 4",
                                          "Value 6" };

    public String[] getCollectionSelect() {
        return (this.collectionSelect);
    }

    public void setCollectionSelect(String collectionSelect[]) {
        this.collectionSelect = collectionSelect;
    }


    /**
     * A double property.
     */
    private double doubleProperty = 321.0;

    public double getDoubleProperty() {
        return (this.doubleProperty);
    }

    public void setDoubleProperty(double doubleProperty) {
        this.doubleProperty = doubleProperty;
    }


    /**
     * A boolean property whose initial value is false
     */
    private boolean falseProperty = false;

    public boolean getFalseProperty() {
        return (falseProperty);
    }

    public void setFalseProperty(boolean falseProperty) {
        this.falseProperty = falseProperty;
    }


    /**
     * A float property.
     */
    private float floatProperty = (float) 123.0;

    public float getFloatProperty() {
        return (this.floatProperty);
    }

    public void setFloatProperty(float floatProperty) {
        this.floatProperty = floatProperty;
    }


    /**
     * Integer arrays that are accessed as an array as well as indexed.
     */
    private int intArray[] = { 0, 10, 20, 30, 40 };

    public int[] getIntArray() {
        return (this.intArray);
    }

    public void setIntArray(int intArray[]) {
        this.intArray = intArray;
    }

    private int intIndexed[] = { 0, 10, 20, 30, 40 };

    public int getIntIndexed(int index) {
        return (intIndexed[index]);
    }

    public void setIntIndexed(int index, int value) {
        intIndexed[index] = value;
    }


    private int intMultibox[] = new int[0];

    public int[] getIntMultibox() {
        return (this.intMultibox);
    }

    public void setIntMultibox(int intMultibox[]) {
        this.intMultibox = intMultibox;
    }

    /**
     * An integer property.
     */
    private int intProperty = 123;

    public int getIntProperty() {
        return (this.intProperty);
    }

    public void setIntProperty(int intProperty) {
        this.intProperty = intProperty;
    }


    /**
     * A long property.
     */
    private long longProperty = 321;

    public long getLongProperty() {
        return (this.longProperty);
    }

    public void setLongProperty(long longProperty) {
        this.longProperty = longProperty;
    }


    /**
     * A multiple-String SELECT element.
     */
    private String[] multipleSelect = { "Multiple 3", "Multiple 5",
                                        "Multiple 7" };

    public String[] getMultipleSelect() {
        return (this.multipleSelect);
    }

    public void setMultipleSelect(String multipleSelect[]) {
        this.multipleSelect = multipleSelect;
    }


    /**
     * A nested reference to another test bean (populated as needed).
     */
    private TestBean nested = null;

    public TestBean getNested() {
        if (nested == null)
            nested = new TestBean();
        return (nested);
    }


    /**
     * A String property with an initial value of null.
     */
    private String nullProperty = null;

    public String getNullProperty() {
        return (this.nullProperty);
    }

    public void setNullProperty(String nullProperty) {
        this.nullProperty = nullProperty;
    }


    /**
     * A short property.
     */
    private short shortProperty = (short) 987;

    public short getShortProperty() {
        return (this.shortProperty);
    }

    public void setShortProperty(short shortProperty) {
        this.shortProperty = shortProperty;
    }


    /**
     * A single-String value for a SELECT element.
     */
    private String singleSelect = "Single 5";

    public String getSingleSelect() {
        return (this.singleSelect);
    }

    public void setSingleSelect(String singleSelect) {
        this.singleSelect = singleSelect;
    }


    /**
     * String arrays that are accessed as an array as well as indexed.
     */
    private String stringArray[] =
    { "String 0", "String 1", "String 2", "String 3", "String 4" };

    public String[] getStringArray() {
        return (this.stringArray);
    }

    public void setStringArray(String stringArray[]) {
        this.stringArray = stringArray;
    }

    private String stringIndexed[] =
    { "String 0", "String 1", "String 2", "String 3", "String 4" };

    public String getStringIndexed(int index) {
        return (stringIndexed[index]);
    }

    public void setStringIndexed(int index, String value) {
        stringIndexed[index] = value;
    }


    private String stringMultibox[] = new String[0];

    public String[] getStringMultibox() {
        return (this.stringMultibox);
    }

    public void setStringMultibox(String stringMultibox[]) {
        this.stringMultibox = stringMultibox;
    }

    /**
     * A String property.
     */
    private String stringProperty = "This is a string";

    public String getStringProperty() {
        return (this.stringProperty);
    }

    public void setStringProperty(String stringProperty) {
        this.stringProperty = stringProperty;
    }

    /**
     * An empty String property.
     */
    private String emptyStringProperty = "";

    public String getEmptyStringProperty() {
        return (this.emptyStringProperty);
    }

    public void setEmptyStringProperty(String emptyStringProperty) {
        this.emptyStringProperty = emptyStringProperty;
    }


    /**
     * A single-String value for a SELECT element based on resource strings.
     */
    private String resourcesSelect = "Resources 2";

    public String getResourcesSelect() {
        return (this.resourcesSelect);
    }

    public void setResourcesSelect(String resourcesSelect) {
        this.resourcesSelect = resourcesSelect;
    }


    /**
     * A property that allows a null value but is still used in a SELECT.
     */
    private String withNulls = null;

    public String getWithNulls() {
        return (this.withNulls);
    }

    public void setWithNulls(String withNulls) {
        this.withNulls = withNulls;
    }


    /**
     * A List property.
     */
    private List listProperty = null;

    public List getListProperty() {
        if (listProperty == null) {
            listProperty = new ArrayList();
            listProperty.add("dummy");
        }
        return listProperty;
    }

    public void setListProperty(List listProperty) {
        this.listProperty = listProperty;
    }

    /**
     * An empty List property.
     */
    private List emptyListProperty = null;

    public List getEmptyListProperty() {
        if (emptyListProperty == null) {
            emptyListProperty = new ArrayList();
        }
        return emptyListProperty;
    }

    public void setEmptyListProperty(List emptyListProperty) {
        this.emptyListProperty = emptyListProperty;
    }


    /**
     * A Map property.
     */
    private Map mapProperty = null;

    public Map getMapProperty() {
        if (mapProperty == null) {
            mapProperty = new HashMap();
            mapProperty.put("dummy", "dummy");
        }
        return mapProperty;
    }

    public void setMapProperty(Map mapProperty) {
        this.mapProperty = mapProperty;
    }

    /**
     * An empty Map property.
     */
    private Map emptyMapProperty = null;

    public Map getEmptyMapProperty() {
        if (emptyMapProperty == null) {
            emptyMapProperty = new HashMap();
        }
        return emptyMapProperty;
    }

    public void setEmptyMapProperty(Map emptyMapProperty) {
        this.emptyMapProperty = emptyMapProperty;
    }


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


    /**
     * Reset the properties that will be received as input.
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {

        booleanProperty = false;
        collectionSelect = new String[0];
        intMultibox = new int[0];
        multipleSelect = new String[0];
        stringMultibox = new String[0];
        if (nested != null)
            nested.reset(mapping, request);

    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久婷婷国产综合精品电影| 欧美成人猛片aaaaaaa| 在线电影国产精品| 欧美国产乱子伦 | 亚洲不卡一区二区三区| 国内精品自线一区二区三区视频| 在线亚洲高清视频| 国产午夜精品在线观看| 日韩国产在线一| 91蝌蚪porny| 日本一区二区综合亚洲| 蜜臀a∨国产成人精品| 欧美性xxxxxxxx| 亚洲女人****多毛耸耸8| 国产一区二区在线观看免费| 91精选在线观看| 亚洲国产一区视频| 99国产精品久| 国产精品每日更新在线播放网址| 伦理电影国产精品| 91精品国产综合久久香蕉麻豆| 一区二区三区四区在线免费观看| 国产成人a级片| 久久亚洲精华国产精华液| 日韩电影一区二区三区四区| 欧美无乱码久久久免费午夜一区| 中文字幕中文字幕一区| 成人激情动漫在线观看| 久久精品夜色噜噜亚洲aⅴ| 精品一区二区国语对白| 日韩午夜av电影| 免费在线看一区| 日韩午夜在线观看视频| 蜜臀精品一区二区三区在线观看| 91精品在线免费| 蜜桃久久av一区| 精品国产乱码91久久久久久网站| 日本免费新一区视频| 91精品国产综合久久精品| 天堂va蜜桃一区二区三区漫画版 | 国产精品成人午夜| www.在线成人| 亚洲一区二区三区中文字幕在线| 色婷婷精品大视频在线蜜桃视频 | 日韩黄色小视频| 91精品国产综合久久久蜜臀图片| 日本三级韩国三级欧美三级| 日韩欧美在线影院| 国产精品一区二区男女羞羞无遮挡| 久久午夜电影网| 99v久久综合狠狠综合久久| 一区二区三区在线视频观看58| 在线亚洲高清视频| 免费成人在线视频观看| www欧美成人18+| k8久久久一区二区三区| 一区二区三区久久| 日韩精品专区在线| 成人激情免费视频| 三级欧美韩日大片在线看| 日韩女优电影在线观看| 从欧美一区二区三区| 一区二区三区蜜桃网| 欧美成人伊人久久综合网| 国产iv一区二区三区| 亚洲综合视频在线观看| 欧美不卡在线视频| 97久久久精品综合88久久| 亚洲国产日韩一区二区| 久久伊人蜜桃av一区二区| 91麻豆国产在线观看| 蜜桃精品视频在线观看| 最新日韩在线视频| 日韩精品一区国产麻豆| 99精品欧美一区二区三区小说| 五月婷婷激情综合网| 国产欧美一区二区三区在线老狼| 欧美体内she精高潮| 岛国精品在线观看| 男女性色大片免费观看一区二区| 国产精品福利影院| 精品久久五月天| 日本道色综合久久| 粉嫩aⅴ一区二区三区四区| 日本中文字幕不卡| 亚洲精品日日夜夜| 国产欧美日韩视频在线观看| 欧美一区二区三区公司| 色噜噜狠狠一区二区三区果冻| 国产精品一区二区久久不卡| 午夜精品久久一牛影视| 亚洲免费观看高清完整版在线观看 | 欧美三级电影精品| 盗摄精品av一区二区三区| 久久精品国产99| 丝袜亚洲另类欧美综合| 亚洲黄色片在线观看| 国产精品色在线观看| 精品国产一区二区国模嫣然| 欧美精品一二三| 在线观看免费一区| 91丨九色丨蝌蚪丨老版| 国产成人av电影| 国产黄色精品网站| 国产真实乱偷精品视频免| 免费看黄色91| 男人的j进女人的j一区| 五月天激情综合网| 五月综合激情日本mⅴ| 亚洲成人自拍偷拍| 亚洲不卡一区二区三区| 亚洲成人手机在线| 亚洲一级二级在线| 亚洲一二三区在线观看| 一区二区三区成人| 亚洲一线二线三线久久久| 亚洲男女毛片无遮挡| 亚洲三级久久久| 一区二区三区中文字幕精品精品 | 不卡视频一二三| 成人免费视频国产在线观看| 国产不卡免费视频| 成人国产电影网| 91在线观看成人| 色吊一区二区三区| 欧美日韩成人综合天天影院| 欧美精选午夜久久久乱码6080| 在线亚洲一区二区| 欧美精品电影在线播放| 日韩视频免费观看高清在线视频| 欧美一二区视频| 久久精品一区二区三区四区| 国产精品久久久久久久久搜平片| 国产精品国产自产拍高清av| 一区二区三区日韩精品| 亚洲福利电影网| 裸体歌舞表演一区二区| 国产91精品露脸国语对白| 色综合视频在线观看| 欧美日韩日日骚| 精品日产卡一卡二卡麻豆| 欧美韩日一区二区三区四区| 亚洲女人小视频在线观看| 日日夜夜精品视频天天综合网| 久久av中文字幕片| 91蜜桃在线观看| 欧美一级高清片在线观看| 国产丝袜欧美中文另类| 一区二区三区久久| 极品少妇xxxx精品少妇| 97se狠狠狠综合亚洲狠狠| 欧美精品九九99久久| 国产情人综合久久777777| 亚洲超丰满肉感bbw| 国产精品一线二线三线| 在线观看免费一区| 欧美精品一区二区三区久久久| 亚洲天堂精品视频| 久久成人麻豆午夜电影| 99国产精品久久久久| 日韩免费一区二区| 亚洲精品国产a久久久久久| 久久精品二区亚洲w码| 91网址在线看| 久久精品夜色噜噜亚洲aⅴ| 亚洲国产婷婷综合在线精品| 国产成人精品一区二| 欧美日韩国产大片| 1区2区3区精品视频| 精彩视频一区二区三区| 欧美调教femdomvk| 国产精品乱码妇女bbbb| 麻豆免费看一区二区三区| 91高清在线观看| 中文字幕不卡的av| 久久99国产精品尤物| 欧美三级三级三级| 亚洲三级在线观看| 国产成人精品亚洲777人妖| 欧美久久久久久蜜桃| 亚洲欧美另类小说视频| 国产精品乡下勾搭老头1| 3d动漫精品啪啪| 亚洲丰满少妇videoshd| 一本色道**综合亚洲精品蜜桃冫| 日本一区二区三区高清不卡| 精品一区二区三区不卡| 91精品国产综合久久国产大片| 亚洲一区视频在线观看视频| av一区二区不卡| 国产精品久久午夜| 丰满亚洲少妇av| 欧美激情一区二区三区在线| 国产一区 二区 三区一级| 欧美mv日韩mv国产网站app| 石原莉奈一区二区三区在线观看| 色婷婷综合久久久久中文一区二区 | 国产精品乱码一区二三区小蝌蚪| 久久福利资源站| 日韩精品一区二区在线观看|