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

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

?? imagetag.java

?? 這是STRUTS1.2。6的開發(fā)包。。這是我從芝APACHE網(wǎng)站下下來
?? JAVA
字號:
/*
 * $Id: ImageTag.java 54954 2004-10-17 06:40:12Z martinc $ 
 *
 * 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.taglib.html;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.JspException;

import org.apache.struts.Globals;
import org.apache.struts.config.ModuleConfig;
import org.apache.struts.taglib.TagUtils;


/**
 * Tag for input fields of type "image".
 *
 * @version $Rev: 54954 $ $Date: 2004-10-16 23:40:12 -0700 (Sat, 16 Oct 2004) $
 */

public class ImageTag extends SubmitTag {


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


    /**
     * The alignment for this image.
     */
    protected String align = null;

    /**
     * @deprecated Align attribute is deprecated in HTML 4.x.
     */
    public String getAlign() {
        return (this.align);
    }

    /**
     * @deprecated Align attribute is deprecated in HTML 4.x.
     */
    public void setAlign(String align) {
        this.align = align;
    }


    /**
     * The border size around the image.
     */
    protected String border = null;

    public String getBorder() {
        return (this.border);
    }

    public void setBorder(String border) {
        this.border = border;
    }


    /**
     * The module-relative URI of the image.
     */
    protected String page = null;

    public String getPage() {
        return (this.page);
    }

    public void setPage(String page) {
        this.page = page;
    }


    /**
     * The message resources key of the module-relative URI of the image.
     */
    protected String pageKey = null;

    public String getPageKey() {
        return (this.pageKey);
    }

    public void setPageKey(String pageKey) {
        this.pageKey = pageKey;
    }

    /**
     * The URL of this image.
     */
    protected String src = null;

    public String getSrc() {
        return (this.src);
    }

    public void setSrc(String src) {
        this.src = src;
    }


    /**
     * The message resources key for the URL of this image.
     */
    protected String srcKey = null;

    public String getSrcKey() {
        return (this.srcKey);
    }

    public void setSrcKey(String srcKey) {
        this.srcKey = srcKey;
    }


    // --------------------------------------------------------- Constructor

    public ImageTag() {
        super();
        property = ""; 
    }

    // --------------------------------------------------------- Protected Methods

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

    /**
     * Render the button attributes
     * @param results The StringBuffer that output will be appended to.
     */
    protected void prepareButtonAttributes(StringBuffer results)
                      throws JspException {
        String tmp = src();
        if (tmp != null) {
            HttpServletResponse response =
                (HttpServletResponse) pageContext.getResponse();
            prepareAttribute(results, "src", response.encodeURL(tmp));
        }
        prepareAttribute(results, "align", getAlign());
        prepareAttribute(results, "border", getBorder());
        prepareAttribute(results, "value", getValue());
        prepareAttribute(results, "accesskey", getAccesskey());
        prepareAttribute(results, "tabindex", getTabindex());
    }


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

        super.release();
        page = null;
        pageKey = null;
        property = "";
        src = null;
        srcKey = null;

    }


    // ------------------------------------------------------ Protected Methods


    /**
     * Return the base source URL that will be rendered in the <code>src</code>
     * property for this generated element, or <code>null</code> if there is
     * no such URL.
     *
     * @exception JspException if an error occurs
     */
    protected String src() throws JspException {

        // Deal with a direct context-relative page that has been specified
        if (this.page != null) {
            if ((this.src != null) || (this.srcKey != null) ||
                (this.pageKey != null)) {
                JspException e = new JspException
                    (messages.getMessage("imgTag.src"));
                TagUtils.getInstance().saveException(pageContext, e);
                throw e;
            }
            
            ModuleConfig config = (ModuleConfig)
                pageContext.getRequest().getAttribute(Globals.MODULE_KEY);
            
            HttpServletRequest request =
                (HttpServletRequest) pageContext.getRequest();
            
            if (config == null) {
                return (request.getContextPath() + this.page);
            } else {
                return (request.getContextPath() + config.getPrefix() + this.page);
            }
        }

        // Deal with an indirect context-relative page that has been specified
        if (this.pageKey != null) {
            if ((this.src != null) || (this.srcKey != null)) {
                JspException e = new JspException
                    (messages.getMessage("imgTag.src"));
                TagUtils.getInstance().saveException(pageContext, e);
                throw e;
            }
            
            ModuleConfig config = (ModuleConfig)
                pageContext.getRequest().getAttribute(Globals.MODULE_KEY);
            
            HttpServletRequest request =
                (HttpServletRequest) pageContext.getRequest();
            
            if (config == null) {
                return (
                    request.getContextPath()
                        + TagUtils.getInstance().message(
                            pageContext,
                            getBundle(),
                            getLocale(),
                            this.pageKey));
            } else {
                return (
                    request.getContextPath()
                        + config.getPrefix()
                        + TagUtils.getInstance().message(
                            pageContext,
                            getBundle(),
                            getLocale(),
                            this.pageKey));
            }
        }

        // Deal with an absolute source that has been specified
        if (this.src != null) {
            if (this.srcKey != null) {
                JspException e = new JspException
                    (messages.getMessage("imgTag.src"));
                TagUtils.getInstance().saveException(pageContext, e);
                throw e;
            }
            return (this.src);
        }

        // Deal with an indirect source that has been specified
        if (this.srcKey == null) {
            JspException e = new JspException
                (messages.getMessage("imgTag.src"));
            TagUtils.getInstance().saveException(pageContext, e);
            throw e;
        }
        
        return TagUtils.getInstance().message(
            pageContext,
            getBundle(),
            getLocale(),
            this.srcKey);

    }


}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线观看一区| 蜜桃久久久久久| 色哟哟一区二区三区| 亚洲欧洲美洲综合色网| k8久久久一区二区三区| 亚洲男人天堂一区| 欧美久久一二区| 麻豆精品视频在线观看视频| 欧美本精品男人aⅴ天堂| 国内精品久久久久影院薰衣草 | 99re在线视频这里只有精品| 国产精品传媒视频| 欧美中文字幕一区二区三区| 日日夜夜精品视频免费| 精品国产露脸精彩对白| 99免费精品在线观看| 亚洲第一搞黄网站| 国产亚洲一本大道中文在线| 色综合天天做天天爱| 日韩成人精品在线| 亚洲欧美日本韩国| 久久成人18免费观看| 国产精品午夜免费| 欧美日韩国产在线观看| 麻豆精品视频在线观看免费 | 99精品欧美一区二区三区综合在线| 亚洲欧美日韩久久| 欧美日韩国产乱码电影| 国产美女久久久久| 亚洲一区二区三区中文字幕| 亚洲精品一区二区三区在线观看 | 午夜私人影院久久久久| 精品国产一区二区亚洲人成毛片 | 国产精品影视网| 一区二区三区鲁丝不卡| 亚洲精品在线观| 色偷偷久久一区二区三区| 韩国av一区二区| 亚洲一区二区三区爽爽爽爽爽 | 欧美一区二区三区四区在线观看 | 国产一区二区三区免费观看| 亚洲电影一区二区| 国产精品久久久久久久久免费丝袜| 欧美日韩精品欧美日韩精品| 成人av中文字幕| 久久精品99国产精品日本| 亚洲免费观看视频| 国产亚洲精品中文字幕| 日韩视频国产视频| 精品视频在线免费| 91美女在线视频| 成人晚上爱看视频| 国内精品在线播放| 蜜臀av在线播放一区二区三区| 亚洲三级电影网站| 国产视频一区二区在线观看| 日韩欧美一区二区视频| 欧美日韩国产在线观看| 欧美亚洲高清一区二区三区不卡| 成人中文字幕合集| 国产91精品在线观看| 韩国成人福利片在线播放| 日韩和欧美一区二区三区| 亚洲综合在线视频| 亚洲免费色视频| 亚洲精品美腿丝袜| 亚洲欧洲成人精品av97| 国产精品视频在线看| 国产日韩欧美亚洲| 久久久久久久久久久久久久久99 | 欧美mv和日韩mv的网站| 久久九九99视频| 91精品国产黑色紧身裤美女| 欧美二区乱c少妇| 在线不卡免费av| 欧美精品一二三| 欧美精品一二三| 4438x亚洲最大成人网| 777a∨成人精品桃花网| 9191久久久久久久久久久| 日韩欧美国产精品一区| 亚洲精品一区二区三区精华液| 日韩视频中午一区| 精品日产卡一卡二卡麻豆| 欧美xxx久久| 精品久久久久久久人人人人传媒 | 国产精品九色蝌蚪自拍| 一区在线观看视频| 亚洲另类春色校园小说| 亚洲成av人片在线观看| 日本免费在线视频不卡一不卡二| 麻豆精品精品国产自在97香蕉| 免费观看91视频大全| 久久99精品一区二区三区| 国产精品一二三四| 99精品久久99久久久久| 欧美在线看片a免费观看| 91精品一区二区三区久久久久久 | 亚洲激情网站免费观看| 午夜精品福利一区二区三区av| 视频一区二区三区在线| 国精产品一区一区三区mba桃花| 国产精品18久久久久| 不卡的av电影在线观看| 欧美在线观看18| 精品对白一区国产伦| 国产精品三级在线观看| 亚洲成a人片在线不卡一二三区| 男女男精品视频| 波多野结衣在线一区| 欧美日韩另类一区| 久久亚洲欧美国产精品乐播 | 51精品国自产在线| 国产夜色精品一区二区av| 亚洲视频一二三| 久久99国产精品麻豆| 成人av电影在线| 欧美一区二区视频免费观看| 国产精品欧美久久久久一区二区 | 国产精品一二二区| 91免费观看国产| 久久这里只有精品首页| 一区二区三区在线免费| 精品一区免费av| 91高清在线观看| 国产亚洲综合av| 免费欧美在线视频| av在线不卡电影| 欧美一区二区黄色| 亚洲免费看黄网站| 欧美三级中文字幕| 久久婷婷色综合| 亚洲第四色夜色| 9久草视频在线视频精品| 日韩欧美综合一区| 亚洲午夜久久久久| 成人av网站在线| 久久久久成人黄色影片| 日本特黄久久久高潮| 色婷婷综合久久久中文字幕| 国产亚洲女人久久久久毛片| 免费精品视频最新在线| 欧美在线|欧美| 日韩美女啊v在线免费观看| 国产成人一级电影| 精品少妇一区二区三区视频免付费 | 国产精品一区二区无线| 欧美一区二区在线不卡| 一区二区三区在线观看国产| 成人av在线观| 国产精品久久久久天堂| 国产电影精品久久禁18| 精品伦理精品一区| 久久爱另类一区二区小说| 91麻豆精品91久久久久久清纯| 亚洲综合免费观看高清完整版| 91在线一区二区| 亚洲欧美日韩一区二区| 91色porny| 自拍偷拍亚洲欧美日韩| av成人动漫在线观看| 国产精品国产三级国产a| 99综合电影在线视频| 国产精品乱码人人做人人爱| 国产美女视频一区| 国产婷婷色一区二区三区在线| 精品一区二区三区久久| 久久久久久久久久久久久夜| 国产成人高清视频| 国产欧美一区二区精品性| 风间由美中文字幕在线看视频国产欧美 | 欧美日韩亚洲综合在线| 一区二区三区.www| 精品视频在线看| 天天综合色天天综合色h| 4438亚洲最大| 久久精品国产秦先生| 久久久久国色av免费看影院| 国产一区三区三区| 中文字幕精品一区| 色先锋久久av资源部| 午夜视频一区在线观看| 日韩一级完整毛片| 国产麻豆一精品一av一免费| 国产精品萝li| 欧美三级一区二区| 美女脱光内衣内裤视频久久影院| 欧美大片在线观看一区| 国产高清久久久| 亚洲美腿欧美偷拍| 日韩一级黄色片| 丰满白嫩尤物一区二区| 亚洲一二三区不卡| 精品国产青草久久久久福利| 成人动漫av在线| 日韩激情中文字幕| 国产欧美一区二区在线观看| 一本久久综合亚洲鲁鲁五月天| 日本色综合中文字幕| 国产精品无遮挡|