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

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

?? submittag.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: SubmitTag.java 164530 2005-04-25 03:11:07Z niallp $ 
 *
 * Copyright 1999-2005 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.taglib.html;

import javax.servlet.jsp.JspException;

import org.apache.struts.taglib.TagUtils;
import org.apache.struts.util.MessageResources;

/**
 * Tag for input fields of type "submit".
 *
 * @version $Rev: 164530 $ $Date: 2005-04-25 04:11:07 +0100 (Mon, 25 Apr 2005) $
 */
public class SubmitTag extends BaseHandlerTag {


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


    /**
     * The message resources for this package.
     */
    protected static MessageResources messages =
     MessageResources.getMessageResources(Constants.Package + ".LocalStrings");


    /**
     * The name of the generated input field.
     */
    protected String property = null;


    /**
     * The body content of this tag (if any).
     */
    protected String text = null;


    /**
     * The value of the button label.
     */
    protected String value = null;


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


    /**
     * Return the property.
     */
    public String getProperty() {

        return (this.property);

    }


    /**
     * Set the property name.
     *
     * @param property The property name
     */
    public void setProperty(String property) {

        this.property = property;

    }


    /**
     * Return the label value.
     */
    public String getValue() {

        return (this.value);

    }


    /**
     * Set the label value.
     *
     * @param value The label value
     */
    public void setValue(String value) {

        this.value = value;

    }


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


    /**
     * Process the start of this tag.
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doStartTag() throws JspException {

        // Do nothing until doEndTag() is called
        this.text = null;
        return (EVAL_BODY_TAG);

    }



    /**
     * Save the associated label from the body content.
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doAfterBody() throws JspException {

        if (bodyContent != null) {
            String value = bodyContent.getString().trim();
            if (value.length() > 0) {
                text = value;
            }
        }
        return (SKIP_BODY);

    }


    /**
     * Process the end of this tag.
     * <p>
     * Support for Indexed property since Struts 1.1
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doEndTag() throws JspException {

        // Generate an HTML element
        StringBuffer results = new StringBuffer();
        results.append(getElementOpen());
        prepareAttribute(results, "name", prepareName());
        prepareButtonAttributes(results);
        results.append(prepareEventHandlers());
        results.append(prepareStyles());
        prepareOtherAttributes(results);
        results.append(getElementClose());

        TagUtils.getInstance().write(pageContext, results.toString());

        return (EVAL_PAGE);

    }

    /**
     * Render the opening element.
     *
     * @return The opening part of the element.
     */
    protected String getElementOpen() {
        return "<input type=\"submit\"";
    }


    /**
     * Prepare the name element
     * @return The element name.
     */
    protected String prepareName() throws JspException {

        if (property == null) {
            return null;
        }

        // * @since Struts 1.1
        if(indexed) {
            StringBuffer results = new StringBuffer();
            results.append(property);
            prepareIndex(results, null);
            return results.toString();
        }

        return property;

    }

    /**
     * Render the button attributes
     * @param results The StringBuffer that output will be appended to.
     */
    protected void prepareButtonAttributes(StringBuffer results) 
                      throws JspException {
        prepareAttribute(results, "accesskey", getAccesskey());
        prepareAttribute(results, "tabindex", getTabindex());
        prepareValue(results);
    }

    /**
     * Render the value element
     * @param results The StringBuffer that output will be appended to.
     */
    protected void prepareValue(StringBuffer results) {

        // Acquire the label value we will be generating
        String label = value;
        if ((label == null) && (text != null))
            label = text;
        if ((label == null) || (label.length() < 1))
            label = getDefaultValue();

        prepareAttribute(results, "value", label);

    }

    /**
     * Return the default value.
     *
     * @return The default value if none supplied.
     */
    protected String getDefaultValue() {
        return "Submit";
    }

    /**
     * Release any acquired resources.
     */
    public void release() {

        super.release();
        property = null;
        text = null;
        value = null;

    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美欧美午夜aⅴ在线观看| 日韩 欧美一区二区三区| 欧美激情一区二区三区在线| 欧美mv日韩mv亚洲| 精品日产卡一卡二卡麻豆| 538在线一区二区精品国产| 欧美久久久久中文字幕| 91精品国产日韩91久久久久久| 国产视频一区不卡| 久久久蜜臀国产一区二区| 国产午夜精品久久| 国产精品久久99| 亚洲图片另类小说| 亚洲猫色日本管| 亚洲一区二区三区四区在线观看| 亚洲综合免费观看高清完整版 | 久久久亚洲综合| 欧美成人乱码一区二区三区| 久久久综合视频| 国产精品免费久久| 亚洲精品美腿丝袜| 日韩专区在线视频| 久久99精品久久久久婷婷| 国内精品免费**视频| 国产高清成人在线| 色av成人天堂桃色av| 欧美日韩国产色站一区二区三区| 日韩一区二区免费视频| 久久久久久久一区| 亚洲欧洲www| 日韩高清在线一区| 国产中文字幕一区| 91官网在线观看| 日韩三级.com| 国产日韩亚洲欧美综合| 亚洲激情网站免费观看| 久久精品国产99久久6| 国产69精品久久777的优势| 色琪琪一区二区三区亚洲区| 日韩亚洲国产中文字幕欧美| 国产亚洲欧洲997久久综合| 亚洲乱码国产乱码精品精可以看 | 日韩成人dvd| 国产真实乱偷精品视频免| 成人国产精品免费| 欧美日本在线观看| 国产日韩一级二级三级| 天堂一区二区在线| 国产成人午夜精品影院观看视频| 91福利在线免费观看| 精品国产一区二区在线观看| 国产精品成人午夜| 麻豆成人久久精品二区三区红 | 在线观看日韩国产| 精品成人一区二区三区| 亚洲综合一区二区精品导航| 国产另类ts人妖一区二区| 在线观看亚洲精品| 亚洲444eee在线观看| 高清beeg欧美| 日韩午夜av电影| 亚洲美女偷拍久久| 麻豆一区二区在线| 欧美tickling挠脚心丨vk| 亚洲永久精品国产| 成人一级片在线观看| 日韩欧美aaaaaa| 亚洲成年人网站在线观看| 不卡一二三区首页| 国产亚洲精品超碰| 久久国产剧场电影| 欧美色大人视频| 亚洲精品va在线观看| 成人午夜在线视频| 久久天天做天天爱综合色| 免费视频最近日韩| 欧美一区二区在线视频| 亚洲国产精品嫩草影院| 99re在线视频这里只有精品| 中文字幕av一区 二区| 国产一区二区不卡老阿姨| 日本一区二区三区国色天香| 欧美亚洲综合久久| 精品一区二区三区在线视频| 久久免费国产精品| 日韩亚洲国产中文字幕欧美| 天堂在线亚洲视频| 成人av在线一区二区三区| 欧美日韩一本到| 久久99热99| 国产精品一卡二卡| 午夜精品久久久久影视| 亚洲成人在线网站| 在线视频欧美精品| 亚洲欧美日韩电影| 97成人超碰视| 国产精品福利在线播放| aa级大片欧美| 国产精品白丝在线| 99精品欧美一区二区三区小说| 亚洲国产成人在线| 成人sese在线| 亚洲欧美在线视频观看| 日韩亚洲欧美一区二区三区| 免费av网站大全久久| 7777精品伊人久久久大香线蕉超级流畅| 亚洲午夜久久久| 欧美日韩一区二区三区四区五区| 亚洲一区av在线| 欧美日韩精品综合在线| 性欧美疯狂xxxxbbbb| 7777女厕盗摄久久久| 日本中文字幕一区二区有限公司| 欧美一区二视频| 国内精品伊人久久久久影院对白| wwww国产精品欧美| 国产精品一区一区三区| 国产亚洲欧洲997久久综合| 粉嫩嫩av羞羞动漫久久久 | 中文字幕在线免费不卡| 99久久99久久综合| 自拍偷拍亚洲欧美日韩| 91国偷自产一区二区开放时间 | 欧美亚洲动漫精品| 午夜精品久久久| 精品国产自在久精品国产| 国产成人av电影| 亚洲欧美日韩人成在线播放| 欧美亚洲愉拍一区二区| 视频在线在亚洲| 欧美精品一区视频| 北条麻妃国产九九精品视频| 亚洲综合色视频| 欧美xxxxx牲另类人与| 成人国产一区二区三区精品| 一区二区三区久久久| 欧美妇女性影城| 国产一区 二区| 亚洲精品自拍动漫在线| 91精品免费观看| 大陆成人av片| 五月天亚洲婷婷| 国产欧美日韩视频一区二区| 色欧美乱欧美15图片| 另类小说图片综合网| 亚洲欧美一区二区在线观看| 欧美精品xxxxbbbb| 国产超碰在线一区| 亚洲成国产人片在线观看| 久久久噜噜噜久噜久久综合| 欧美主播一区二区三区| 奇米四色…亚洲| 国产精品白丝在线| 日韩午夜激情视频| 91性感美女视频| 久久福利资源站| 亚洲激情在线激情| 久久精品亚洲精品国产欧美 | 亚洲欧美日韩国产综合在线| 日韩欧美中文字幕公布| 97se亚洲国产综合在线| 美脚の诱脚舐め脚责91| 一区二区三区国产| 久久这里只有精品首页| 欧美少妇性性性| 大胆亚洲人体视频| 美腿丝袜亚洲一区| 一区二区三区免费看视频| 久久综合色婷婷| 欧美精品第一页| 色综合久久久久网| 日韩一区二区三区三四区视频在线观看| 国产成人av电影| 久久精品99国产国产精| 一区二区欧美精品| 中文字幕免费不卡| 久久久精品影视| 日韩精品一区二区三区视频在线观看 | 夜夜爽夜夜爽精品视频| 亚洲国产cao| 高清在线不卡av| 91精品国产91综合久久蜜臀| 国产精品久久久久久久久果冻传媒| 日韩电影在线一区| 欧美亚洲禁片免费| 国产精品乱码一区二区三区软件| 亚洲第四色夜色| 在线视频一区二区免费| 国产精品国产三级国产| 国产乱码字幕精品高清av| 91精品国产美女浴室洗澡无遮挡| 亚洲视频在线一区| 91香蕉视频污在线| 国产欧美日韩不卡| 欧美色综合影院| 一区二区三区四区精品在线视频 | 亚洲国产成人一区二区三区| 欧美日韩国产天堂| 寂寞少妇一区二区三区| 成人欧美一区二区三区黑人麻豆|