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

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

?? basehandlertag.java

?? struts的源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    }

    /** Returns the message resources key of the alternate text. */
    public String getAltKey() {
        return altKey;
    }

    /** Sets the message resources key of the alternate text. */
    public void setAltKey(String altKey) {
        this.altKey = altKey;
    }

    /** Returns the name of the message resources bundle to use. */
    public String getBundle() {
        return bundle;
    }

    /** Sets the name of the message resources bundle to use. */
    public void setBundle(String bundle) {
        this.bundle = bundle;
    }

    /** Returns the name of the session attribute for our locale. */
    public String getLocale() {
        return locale;
    }

    /** Sets the name of the session attribute for our locale. */
    public void setLocale(String locale) {
        this.locale = locale;
    }

    /** Returns the advisory title attribute. */
    public String getTitle() {
        return title;
    }

    /** Sets the advisory title attribute. */
    public void setTitle(String title) {
        this.title = title;
    }

    /** Returns the message resources key of the advisory title. */
    public String getTitleKey() {
        return titleKey;
    }

    /** Sets the message resources key of the advisory title. */
    public void setTitleKey(String titleKey) {
        this.titleKey = titleKey;
    }

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

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

        super.release();
        accesskey = null;
        alt = null;
        altKey = null;
        bundle = null;
        errorKey = Globals.ERROR_KEY;
        errorStyle = null;
        errorStyleClass = null;
        errorStyleId = null;
        indexed = false;
        locale = Globals.LOCALE_KEY;
        onclick = null;
        ondblclick = null;
        onmouseover = null;
        onmouseout = null;
        onmousemove = null;
        onmousedown = null;
        onmouseup = null;
        onkeydown = null;
        onkeyup = null;
        onkeypress = null;
        onselect = null;
        onchange = null;
        onblur = null;
        onfocus = null;
        disabled = false;
        readonly = false;
        style = null;
        styleClass = null;
        styleId = null;
        tabindex = null;
        title = null;
        titleKey = null;

    }

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

    /**
     * Return the text specified by the literal value or the message resources
     * key, if any; otherwise return <code>null</code>.
     *
     * @param literal Literal text value or <code>null</code>
     * @param key Message resources key or <code>null</code>
     *
     * @exception JspException if both arguments are non-null
     */
    protected String message(String literal, String key) throws JspException {

        if (literal != null) {
            if (key != null) {
                JspException e =
                    new JspException(messages.getMessage("common.both"));
                TagUtils.getInstance().saveException(pageContext, e);
                throw e;
            } else {
                return (literal);
            }
        } else {
            if (key != null) {
                return TagUtils.getInstance().message(
                    pageContext,
                    getBundle(),
                    getLocale(),
                    key);
            } else {
                return null;
            }
        }

    }

    private Class loopTagSupportClass = null;
    private Method loopTagSupportGetStatus = null;
    private Class loopTagStatusClass = null;
    private Method loopTagStatusGetIndex = null;
    private boolean triedJstlInit = false;
    private boolean triedJstlSuccess = false;

    private Integer getJstlLoopIndex() {
        if (!triedJstlInit) {
            triedJstlInit = true;
            try {
                loopTagSupportClass =
                    RequestUtils.applicationClass(
                        "javax.servlet.jsp.jstl.core.LoopTagSupport");

                loopTagSupportGetStatus =
                    loopTagSupportClass.getDeclaredMethod("getLoopStatus", null);

                loopTagStatusClass =
                    RequestUtils.applicationClass(
                        "javax.servlet.jsp.jstl.core.LoopTagStatus");

                loopTagStatusGetIndex =
                    loopTagStatusClass.getDeclaredMethod("getIndex", null);

                triedJstlSuccess = true;

            } catch (ClassNotFoundException ex) {
                // These just mean that JSTL isn't loaded, so ignore
            } catch (NoSuchMethodException ex) {
            }
        }

        if (triedJstlSuccess) {
            try {
                Object loopTag = findAncestorWithClass(this, loopTagSupportClass);
                if (loopTag == null) {
                    return null;
                }

                Object status = loopTagSupportGetStatus.invoke(loopTag, null);
                return (Integer) loopTagStatusGetIndex.invoke(status, null);

            } catch (IllegalAccessException ex) {
                log.error(ex.getMessage(), ex);

            } catch (IllegalArgumentException ex) {
                log.error(ex.getMessage(), ex);

            } catch (InvocationTargetException ex) {
                log.error(ex.getMessage(), ex);

            } catch (NullPointerException ex) {
                log.error(ex.getMessage(), ex);

            } catch (ExceptionInInitializerError ex) {
                log.error(ex.getMessage(), ex);
            }
        }
        return null;
    }

    /**
     *  Appends bean name with index in brackets for tags with
     *  'true' value in 'indexed' attribute.
     *  @param handlers The StringBuffer that output will be appended to.
     *  @exception JspException if 'indexed' tag used outside of iterate tag.
     */
    protected void prepareIndex(StringBuffer handlers, String name)
        throws JspException {

        if (name != null) {
            handlers.append(name);
        }

        handlers.append("[");
        handlers.append(getIndexValue());
        handlers.append("]");

        if (name != null) {
            handlers.append(".");
        }
    }

    /**
     *  Returns the index value for tags with 'true' value in 'indexed' attribute.
     *  @return the index value.
     *  @exception JspException if 'indexed' tag used outside of iterate tag.
     */
    protected int getIndexValue() throws JspException {

        // look for outer iterate tag
        IterateTag iterateTag =
            (IterateTag) findAncestorWithClass(this, IterateTag.class);
        if (iterateTag != null) {
            return iterateTag.getIndex();
        }

        // Look for JSTL loops
        Integer i = getJstlLoopIndex();
        if (i != null) {
            return i.intValue();
        }

        // this tag should be nested in an IterateTag or JSTL loop tag, if it's not, throw exception
        JspException e =
             new JspException(messages.getMessage("indexed.noEnclosingIterate"));
        TagUtils.getInstance().saveException(pageContext, e);
        throw e;

    }

    /**
     * Prepares the style attributes for inclusion in the component's HTML tag.
     * @return The prepared String for inclusion in the HTML tag.
     * @exception JspException if invalid attributes are specified
     */
    protected String prepareStyles() throws JspException {

        StringBuffer styles = new StringBuffer();

        boolean errorsExist = doErrorsExist();

        if (errorsExist && getErrorStyleId() != null) {
            prepareAttribute(styles , "id", getErrorStyleId());
        } else {
            prepareAttribute(styles , "id", getStyleId());
        }

        if (errorsExist && getErrorStyle() != null) {
            prepareAttribute(styles , "style", getErrorStyle());
        } else {
            prepareAttribute(styles , "style", getStyle());
        }

        if (errorsExist && getErrorStyleClass() != null) {
            prepareAttribute(styles , "class", getErrorStyleClass());
        } else {
            prepareAttribute(styles , "class", getStyleClass());
        }

        prepareAttribute(styles , "title", message(getTitle(), getTitleKey()));
        prepareAttribute(styles , "alt", message(getAlt(), getAltKey()));

        return styles.toString();

    }

    /**
     * Determine if there are errors for the component.
     * @return Whether errors exist.
     */
    protected boolean doErrorsExist() throws JspException {

        boolean errorsExist = false;

        if (getErrorStyleId() != null ||
            getErrorStyle() != null ||
            getErrorStyleClass() != null) {
            String actualName = prepareName();
            if (actualName != null) {
                ActionMessages errors = TagUtils.getInstance()
                                                .getActionMessages(pageContext,
                                                                   errorKey);
                errorsExist = (errors != null && errors.size(actualName) > 0);
            }
        }
        return errorsExist;

    }

    /**
     * Prepares the actual name of the component.
     * @return The actual component name.
     */
    protected String prepareName() throws JspException {
        return null;
    }

    /**
     * Prepares the event handlers for inclusion in the component's HTML tag.
     * @return The prepared String for inclusion in the HTML tag.
     */
    protected String prepareEventHandlers() {
        StringBuffer handlers = new StringBuffer();
        prepareMouseEvents(handlers);
        prepareKeyEvents(handlers);
        prepareTextEvents(handlers);
        prepareFocusEvents(handlers);
        return handlers.toString();
    }

    /**
     * Prepares the mouse event handlers, appending them to the the given
     * StringBuffer.
     * @param handlers The StringBuffer that output will be appended to.
     */
    protected void prepareMouseEvents(StringBuffer handlers) {

        prepareAttribute(handlers, "onclick", getOnclick());
        prepareAttribute(handlers, "ondblclick", getOndblclick());
        prepareAttribute(handlers, "onmouseover", getOnmouseover());
        prepareAttribute(handlers, "onmouseout", getOnmouseout());
        prepareAttribute(handlers, "onmousemove", getOnmousemove());
        prepareAttribute(handlers, "onmousedown", getOnmousedown());
        prepareAttribute(handlers, "onmouseup", getOnmouseup());

    }

    /**
     * Prepares the keyboard event handlers, appending them to the the given
     * StringBuffer.
     * @param handlers The StringBuffer that output will be appended to.
     */
    protected void prepareKeyEvents(StringBuffer handlers) {

        prepareAttribute(handlers, "onkeydown", getOnkeydown());
        prepareAttribute(handlers, "onkeyup", getOnkeyup());
        prepareAttribute(handlers, "onkeypress", getOnkeypress());

    }

    /**
     * Prepares the text event handlers, appending them to the the given
     * StringBuffer.
     * @param handlers The StringBuffer that output will be appended to.
     */
    protected void prepareTextEvents(StringBuffer handlers) {

        prepareAttribute(handlers, "onselect", getOnselect());
        prepareAttribute(handlers, "onchange", getOnchange());

    }

    /**
     * Prepares the focus event handlers, appending them to the the given
     * StringBuffer.
     * @param handlers The StringBuffer that output will be appended to.
     */
    protected void prepareFocusEvents(StringBuffer handlers) {

        prepareAttribute(handlers, "onblur", getOnblur());
        prepareAttribute(handlers, "onfocus", getOnfocus());

        // Get the parent FormTag (if necessary)
        FormTag formTag = null;
        if ((doDisabled && !getDisabled()) ||
            (doReadonly && !getReadonly())) {
            formTag = (FormTag)pageContext.getAttribute(Constants.FORM_KEY,
                                                        PageContext.REQUEST_SCOPE);
        }

        // Format Disabled
        if (doDisabled) {
            boolean formDisabled = formTag == null ? false : formTag.isDisabled();
            if (formDisabled || getDisabled()) {
                handlers.append(" disabled=\"disabled\"");
            }
        }

        // Format Read Only
        if (doReadonly) {
            boolean formReadOnly = formTag == null ? false : formTag.isReadonly();
            if (formReadOnly || getReadonly()) {
                handlers.append(" readonly=\"readonly\"");
            }
        }

    }

    /**
     * 'Hook' to enable tags to be extended and 
     *  additional attributes added.
     * @param handlers The StringBuffer that output will be appended to.
     */
    protected void prepareOtherAttributes(StringBuffer handlers) {
    }

    /**
     * Prepares an attribute if the value is not null, appending it to the the given
     * StringBuffer.
     * @param handlers The StringBuffer that output will be appended to.
     */
    protected void prepareAttribute(StringBuffer handlers, String name, Object value) {
        if (value != null) {
            handlers.append(" ");
            handlers.append(name);
            handlers.append("=\"");
            handlers.append(value);
            handlers.append("\"");
        }
    }

    /**
     * Allows HTML tags to find out if they're nested within an %lt;html:html&gt; tag that
     * has xhtml set to true.
     * @return true if the tag is nested within an html tag with xhtml set to true, false
     * otherwise.
     * @since Struts 1.1
     */
    protected boolean isXhtml() {
        return TagUtils.getInstance().isXhtml(this.pageContext);
    }

    /**
     * Returns the closing brace for an input element depending on xhtml status.  The tag
     * must be nested within an %lt;html:html&gt; tag that has xhtml set to true.
     * @return String - &gt; if xhtml is false, /&gt; if xhtml is true
     * @since Struts 1.1
     */
    protected String getElementClose() {
        return this.isXhtml() ? " />" : ">";
    }

    /**
     * Searches all scopes for the bean and calls BeanUtils.getProperty() with the 
     * given arguments and converts any exceptions into JspException.
     * 
     * @param beanName The name of the object to get the property from.
     * @param property The name of the property to get.
     * @return The value of the property.
     * @throws JspException
     * @since Struts 1.1
     */
    protected String lookupProperty(String beanName, String property)
        throws JspException {

        Object bean = TagUtils.getInstance().lookup(this.pageContext, beanName, null);
        if (bean == null) {
            throw new JspException(messages.getMessage("getter.bean", beanName));
        }

        try {
            return BeanUtils.getProperty(bean, property);

        } catch (IllegalAccessException e) {
            throw new JspException(
                messages.getMessage("getter.access", property, beanName));

        } catch (InvocationTargetException e) {
            Throwable t = e.getTargetException();
            throw new JspException(
                messages.getMessage("getter.result", property, t.toString()));

        } catch (NoSuchMethodException e) {
            throw new JspException(
                messages.getMessage("getter.method", property, beanName));
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美另类久久久品| 丁香婷婷综合色啪| 黄网站免费久久| 亚洲综合在线五月| 亚洲欧美在线视频观看| 日韩一区二区视频在线观看| 亚洲v精品v日韩v欧美v专区| 欧美一区二区三区精品| 26uuu亚洲综合色欧美| 婷婷激情综合网| 欧美丰满美乳xxx高潮www| 老鸭窝一区二区久久精品| 精品va天堂亚洲国产| 国产日韩视频一区二区三区| 92国产精品观看| 亚洲视频在线一区观看| 久久影院午夜片一区| 欧美一区二区三区视频| 日韩久久免费av| 麻豆一区二区三区| 久久久久久麻豆| 国产精品一区二区久久精品爱涩| 精品一区二区三区欧美| 日韩精品一区二区三区中文精品| 欧美xxxxx裸体时装秀| 91网址在线看| 欧美成人欧美edvon| 久久久美女毛片| 国产精品毛片大码女人| 国产成人av影院| 亚洲国产精品一区二区久久 | 国产嫩草影院久久久久| 欧美老年两性高潮| 日韩欧美亚洲国产精品字幕久久久 | 国产精品日韩成人| eeuss鲁片一区二区三区| 亚洲一区在线看| 亚洲天堂福利av| 欧美巨大另类极品videosbest| 欧美激情中文字幕一区二区| 色综合夜色一区| 亚洲国产视频一区二区| 成人av资源在线| 亚洲欧洲日韩av| 亚洲人成7777| 国产欧美日韩视频在线观看| 中文字幕亚洲电影| 久久99蜜桃精品| 欧美三级电影网站| 中文字幕人成不卡一区| 亚洲激情图片一区| 欧美在线观看视频一区二区三区| 亚洲午夜在线电影| 91视频国产观看| 亚洲色图在线播放| 免费人成网站在线观看欧美高清| 91麻豆精品国产| 国产999精品久久久久久| 日韩欧美在线观看一区二区三区| 亚洲成人免费在线观看| 96av麻豆蜜桃一区二区| 91免费精品国自产拍在线不卡| 久久久美女艺术照精彩视频福利播放| 91精品国产色综合久久不卡电影 | 国产性天天综合网| 久久婷婷成人综合色| 麻豆91精品视频| 国产亚洲一区二区在线观看| 欧美三级日韩三级| 风间由美一区二区av101| 国产欧美日本一区二区三区| 免费看精品久久片| 久久免费精品国产久精品久久久久| 国产精品资源在线| 亚洲免费电影在线| 3751色影院一区二区三区| 国产精品天天看| 欧美在线影院一区二区| 韩日欧美一区二区三区| 一区二区三区在线观看国产| 亚洲一区二区三区四区在线观看 | 国产成人精品综合在线观看| 亚洲欧洲日韩在线| 久久久久88色偷偷免费| 日韩亚洲欧美成人一区| 欧美性色黄大片手机版| 国产精品天美传媒沈樵| 国产精品久久午夜夜伦鲁鲁| 精品国产乱码91久久久久久网站| 99精品桃花视频在线观看| 色综合欧美在线视频区| 日韩女同互慰一区二区| 91麻豆精品国产91久久久资源速度| www.欧美日韩国产在线| 五月婷婷久久丁香| 亚洲一区二区在线观看视频| 午夜精品123| 午夜激情综合网| 国内成人自拍视频| 粉嫩欧美一区二区三区高清影视| 色天使色偷偷av一区二区| 99re亚洲国产精品| 欧美精品久久99| 久久综合久久综合亚洲| 亚洲丝袜精品丝袜在线| 性欧美大战久久久久久久久| 久久99精品国产麻豆婷婷洗澡| 亚洲区小说区图片区qvod| 九九**精品视频免费播放| 一个色在线综合| 韩国精品主播一区二区在线观看| 欧美va亚洲va香蕉在线| 精品女同一区二区| 成人性生交大片免费看视频在线| 国产精品视频看| 亚洲靠逼com| 国产乱码精品一区二区三区忘忧草| 色伊人久久综合中文字幕| 欧美二区在线观看| 免费三级欧美电影| 国产一区日韩二区欧美三区| 91麻豆精品国产91久久久久| 中文字幕不卡在线播放| 国产凹凸在线观看一区二区| 欧美一区二区三区四区久久| 亚洲男同性视频| 国产精品一区在线| 欧美日韩国产123区| 韩国精品一区二区| 久久天天做天天爱综合色| 国产自产视频一区二区三区| 亚洲午夜三级在线| 成人网男人的天堂| 免费观看一级特黄欧美大片| 处破女av一区二区| 久久久久9999亚洲精品| 成人免费观看视频| 国产日韩欧美一区二区三区乱码| 韩国精品久久久| 欧美丰满美乳xxx高潮www| 日韩国产欧美在线播放| 欧美日韩国产综合视频在线观看| 成人欧美一区二区三区黑人麻豆| 欧美视频你懂的| 免费成人在线影院| 91精品国产色综合久久不卡蜜臀| 日本大胆欧美人术艺术动态| av福利精品导航| 国产精品美女久久久久久久网站| 日韩视频在线永久播放| 色综合久久六月婷婷中文字幕| 日本女人一区二区三区| 一区二区成人在线观看| 一区二区三区免费在线观看| 91福利小视频| 777a∨成人精品桃花网| 成人精品免费看| 首页国产欧美日韩丝袜| 色呦呦国产精品| 国产综合久久久久影院| 国产精品免费丝袜| 亚洲日韩欧美一区二区在线| 亚洲国产综合色| 久久久久久99精品| 欧美激情资源网| 国产精品久久久久一区二区三区| 国产性做久久久久久| 欧美日韩视频在线第一区| 成人av在线一区二区三区| 91在线观看地址| 六月丁香婷婷色狠狠久久| 一区二区三区小说| 国产精品久久影院| 成人欧美一区二区三区小说| 国产精品入口麻豆原神| 亚洲欧洲日韩女同| 国产精品午夜在线观看| 久久国产精品露脸对白| 亚洲成av人片观看| 六月丁香婷婷色狠狠久久| 国产高清精品久久久久| 99精品视频在线免费观看| 欧美一级片免费看| 国产欧美一区二区精品婷婷| 91精品欧美久久久久久动漫| 欧美日韩一级片在线观看| 久久久久久久精| 亚洲人成网站影音先锋播放| 亚洲成a人片在线不卡一二三区| 天天综合日日夜夜精品| 天天色综合天天| 亚洲永久免费av| 欧美日韩精品免费| 日本电影亚洲天堂一区| 91.com视频| 亚洲成人黄色小说| 91国偷自产一区二区三区观看| 欧美日韩国产小视频| 国产精品久久久久久久岛一牛影视 | 91在线高清观看|