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

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

?? testbean.java

?? 這是struts自帶的例子
?? JAVA
字號:
/*
 * $Id: TestBean.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.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.
 *
 * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
 */

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一区二区三区免费野_久草精品视频
国产成人av影院| 日韩精品在线一区二区| 91精品婷婷国产综合久久| 国产精品网站在线| 亚洲3atv精品一区二区三区| 精品久久久久香蕉网| 一区二区三区精密机械公司| 国产精一品亚洲二区在线视频| 欧美日韩专区在线| 国产精品久久影院| 国产美女视频一区| 日韩欧美中文字幕精品| 天天av天天翘天天综合网| 精品中文字幕一区二区| 一区二区不卡在线播放| 亚洲福利一区二区三区| av亚洲精华国产精华精华| 5858s免费视频成人| 久久99精品久久久| 国产精品国产自产拍高清av| 欧美性大战久久久久久久蜜臀 | 亚洲激情一二三区| 99视频精品在线| 亚洲第一二三四区| 久久综合中文字幕| 蜜臀av一区二区| 欧美日韩成人在线| 天堂在线一区二区| 国产网站一区二区| 国产在线视频不卡二| 日韩片之四级片| 成人va在线观看| 亚洲国产高清在线| 国产成人免费av在线| 一卡二卡欧美日韩| 精品国产亚洲在线| 国产综合久久久久久鬼色| 中文字幕日韩av资源站| 99久久国产综合精品女不卡| 国产精品久久二区二区| 91精品婷婷国产综合久久竹菊| 成人免费高清在线观看| 亚洲欧洲精品一区二区三区不卡| 7777精品伊人久久久大香线蕉最新版 | 另类小说图片综合网| 日韩精品在线网站| 91浏览器在线视频| 国产精品欧美精品| 91精品欧美综合在线观看最新| 成人av在线资源| 麻豆精品一区二区综合av| 亚洲精品成人精品456| 久久婷婷综合激情| 欧美日韩亚洲国产综合| bt7086福利一区国产| 日本不卡视频在线| 久久亚洲私人国产精品va媚药| 欧美性猛交xxxxxx富婆| 成人app网站| 久久国产尿小便嘘嘘尿| 一级精品视频在线观看宜春院 | 亚洲成人7777| 1000精品久久久久久久久| 精品国产乱码久久久久久蜜臀| 欧美日韩中文精品| 99精品久久只有精品| 国产精品一卡二卡| 青青草伊人久久| 亚洲第一在线综合网站| 亚洲人成影院在线观看| 欧美日韩不卡在线| 91色视频在线| 丁香网亚洲国际| 亚洲最色的网站| 国产精品蜜臀在线观看| 久久亚洲一级片| 日韩一区二区在线观看视频播放| 在线观看精品一区| 理论电影国产精品| 亚洲成人精品影院| 亚洲久本草在线中文字幕| 日本一区二区三区视频视频| 欧美日韩三级视频| 色狠狠色狠狠综合| 麻豆成人av在线| 天天综合网天天综合色 | 一区二区三区四区精品在线视频| 国产婷婷一区二区| 久久久精品免费免费| 欧美亚洲国产一区在线观看网站| 91丝袜高跟美女视频| 成人午夜视频在线观看| 国产成人在线视频免费播放| 国产一区免费电影| 久久99精品久久久久| 蜜桃一区二区三区在线观看| 日韩电影一区二区三区四区| 国产精品美女久久福利网站| 国产欧美精品一区aⅴ影院 | 一本一道久久a久久精品| 99国产精品久久久久久久久久久| 美女精品自拍一二三四| 免费av成人在线| 免费国产亚洲视频| 麻豆成人免费电影| 久久99国产精品久久| 狠狠色丁香久久婷婷综合_中| 麻豆精品在线看| 韩国av一区二区三区| 国产精品 欧美精品| 国产91综合一区在线观看| 福利91精品一区二区三区| 国产91精品免费| av电影在线观看完整版一区二区| 99精品视频在线观看| 色美美综合视频| 欧美日韩精品系列| 91精品在线一区二区| 欧美一二三区精品| 久久免费电影网| 国产精品国产自产拍高清av王其| 亚洲欧美日韩国产另类专区| 亚洲一二三四区| 中文字幕精品—区二区四季| 国产精品视频观看| 亚洲免费视频成人| 亚洲va国产va欧美va观看| 日本中文字幕一区| 精品一二三四在线| 成人精品gif动图一区| 一本色道久久综合狠狠躁的推荐| 欧美亚日韩国产aⅴ精品中极品| 欧美电影在哪看比较好| 欧美亚洲日本国产| 日韩午夜激情免费电影| 久久你懂得1024| 亚洲欧美日韩一区二区三区在线观看 | 亚洲国产高清在线| 一区二区三区久久久| 青青草国产精品97视觉盛宴| 美国一区二区三区在线播放| 国产精品一区二区三区四区| 99re热视频这里只精品| 精品视频免费在线| 久久久亚洲国产美女国产盗摄 | 久久久久久久久伊人| 亚洲色图制服诱惑| 国产精品乱码久久久久久| 亚洲乱码一区二区三区在线观看| 午夜精品福利视频网站| 韩国av一区二区三区| 99久久伊人精品| 欧美肥妇bbw| 欧美激情综合在线| 亚洲国产成人高清精品| 黄色日韩三级电影| 99精品偷自拍| 日韩欧美亚洲国产精品字幕久久久| 亚洲国产精品av| 首页综合国产亚洲丝袜| 国产精品综合网| 欧美日韩一区精品| 久久久蜜臀国产一区二区| 怡红院av一区二区三区| 久久99精品一区二区三区三区| 97se狠狠狠综合亚洲狠狠| 制服丝袜中文字幕一区| 国产精品国产三级国产a| 日产国产高清一区二区三区| 不卡一二三区首页| 日韩一卡二卡三卡四卡| 国产精品久久久久9999吃药| 丝袜美腿亚洲色图| 成人avav影音| 欧美成人艳星乳罩| 亚洲综合一区二区精品导航| 国产传媒一区在线| 777久久久精品| 日韩一区在线看| 国内外成人在线视频| 欧美三级资源在线| 国产精品视频免费看| 看国产成人h片视频| 欧美自拍偷拍一区| 国产精品免费丝袜| 久久99精品久久久久久动态图 | 一区二区三区小说| 国产成人午夜电影网| 91精品国产综合久久精品app| 欧美日韩另类一区| 国产精品久久久久永久免费观看 | 亚洲国产精品麻豆| 成人毛片在线观看| 日韩色视频在线观看| 亚洲一区二区高清| 99久久久国产精品免费蜜臀| 久久久国产精华| 蜜桃精品视频在线| 欧美日韩你懂的| 一区二区三区在线观看国产|