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

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

?? messagetag.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: MessageTag.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.taglib.bean;

import java.util.Locale;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

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

/**
 * Custom tag that retrieves an internationalized messages string (with
 * optional parametric replacement) from the <code>ActionResources</code>
 * object stored as a context attribute by our associated
 * <code>ActionServlet</code> implementation.
 *
 * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
 */
public class MessageTag extends TagSupport {

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

    /**
     * The first optional argument.
     */
    protected String arg0 = null;

    public String getArg0() {
        return (this.arg0);
    }

    public void setArg0(String arg0) {
        this.arg0 = arg0;
    }

    /**
     * The second optional argument.
     */
    protected String arg1 = null;

    public String getArg1() {
        return (this.arg1);
    }

    public void setArg1(String arg1) {
        this.arg1 = arg1;
    }

    /**
     * The third optional argument.
     */
    protected String arg2 = null;

    public String getArg2() {
        return (this.arg2);
    }

    public void setArg2(String arg2) {
        this.arg2 = arg2;
    }

    /**
     * The fourth optional argument.
     */
    protected String arg3 = null;

    public String getArg3() {
        return (this.arg3);
    }

    public void setArg3(String arg3) {
        this.arg3 = arg3;
    }

    /**
     * The fifth optional argument.
     */
    protected String arg4 = null;

    public String getArg4() {
        return (this.arg4);
    }

    public void setArg4(String arg4) {
        this.arg4 = arg4;
    }

    /**
     * The servlet context attribute key for our resources.
     */
    protected String bundle = null;

    public String getBundle() {
        return (this.bundle);
    }

    public void setBundle(String bundle) {
        this.bundle = bundle;
    }

    /**
     * The default Locale for our server.
     * @deprecated This will be removed after Struts 1.2.
     */
    protected static final Locale defaultLocale = Locale.getDefault();

    /**
     * The message key of the message to be retrieved.
     */
    protected String key = null;

    public String getKey() {
        return (this.key);
    }

    public void setKey(String key) {
        this.key = key;
    }

    /**
     * Name of the bean that contains the message key.
     */
    protected String name = null;

    public String getName() {
        return (this.name);
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * Name of the property to be accessed on the specified bean.
     */
    protected String property = null;

    public String getProperty() {
        return (this.property);
    }

    public void setProperty(String property) {
        this.property = property;
    }

    /**
     * The scope to be searched to retrieve the specified bean.
     */
    protected String scope = null;

    public String getScope() {
        return (this.scope);
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    /**
     * The session scope key under which our Locale is stored.
     */
    protected String localeKey = Globals.LOCALE_KEY;

    public String getLocale() {
        return (this.localeKey);
    }

    public void setLocale(String localeKey) {
        this.localeKey = localeKey;
    }

    /**
     * The message resources for this package.
     */
    protected static MessageResources messages =
        MessageResources.getMessageResources(
            "org.apache.struts.taglib.bean.LocalStrings");

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

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

        String key = this.key;
        if (key == null) {
            // Look up the requested property value
            Object value = TagUtils.getInstance().lookup(pageContext, name, property, scope);
            if (value != null && !(value instanceof String)) {
                JspException e =
                    new JspException(messages.getMessage("message.property", key));
               TagUtils.getInstance().saveException(pageContext, e);
                throw e;
            }
            key = (String) value;
        }

        // Construct the optional arguments array we will be using
        Object args[] = new Object[] { arg0, arg1, arg2, arg3, arg4 };

        // Retrieve the message string we are looking for
        String message =
            TagUtils.getInstance().message(
                pageContext,
                this.bundle,
                this.localeKey,
                key,
                args);
                
        if (message == null) {
            JspException e =
                new JspException(
                    messages.getMessage("message.message", "\"" + key + "\""));
            TagUtils.getInstance().saveException(pageContext, e);
            throw e;
        }

        TagUtils.getInstance().write(pageContext, message);

        return (SKIP_BODY);

    }

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

        super.release();
        arg0 = null;
        arg1 = null;
        arg2 = null;
        arg3 = null;
        arg4 = null;
        bundle = Globals.MESSAGES_KEY;
        key = null;
        name = null;
        property = null;
        scope = null;
        localeKey = Globals.LOCALE_KEY;

    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av网站在线| 岛国精品在线播放| 欧亚一区二区三区| 国产精品自拍一区| 欧美一级搡bbbb搡bbbb| 亚洲成人动漫在线免费观看| 91蜜桃视频在线| 一区二区三区在线观看网站| 欧美亚洲国产一区二区三区| 亚洲精品美腿丝袜| 777xxx欧美| 国产尤物一区二区在线| 久久伊人蜜桃av一区二区| 国产一区二区三区观看| 国产精品日产欧美久久久久| av不卡在线播放| 91精品久久久久久久久99蜜臂| 免费看黄色91| 1024国产精品| 4438成人网| 91伊人久久大香线蕉| 亚洲美女偷拍久久| 一本大道久久a久久精品综合| 中文字幕一区二区三区在线观看| 欧美三区免费完整视频在线观看| 琪琪一区二区三区| 色美美综合视频| 麻豆精品久久久| 亚洲人成7777| 国产自产高清不卡| 亚洲一级片在线观看| 日韩精品一区二区三区视频| www.成人网.com| 亚洲欧美激情一区二区| 91精品婷婷国产综合久久竹菊| 欧美α欧美αv大片| 99热在这里有精品免费| 欧美aaa在线| 亚洲成a人v欧美综合天堂下载| 久久久久久久久久久黄色| 欧美精品xxxxbbbb| 色激情天天射综合网| 26uuu色噜噜精品一区| 欧美人xxxx| 欧美伊人久久久久久久久影院 | 国产日韩欧美a| 91福利国产精品| 在线观看一区二区视频| 激情综合五月婷婷| 国内外成人在线| 国产一区日韩二区欧美三区| 亚洲福利一区二区| 亚洲va欧美va天堂v国产综合| 亚洲欧美另类久久久精品2019| 成人一级视频在线观看| 91精品国产91热久久久做人人| 懂色av一区二区三区蜜臀| 国内精品久久久久影院色| 日本女优在线视频一区二区| 91精品国产全国免费观看| 欧美日韩国产片| 日韩一级黄色大片| 国产麻豆一精品一av一免费 | 亚洲一区二区三区四区五区中文| 成人性生交大片| 成人精品免费视频| 欧美日韩一区视频| 欧美一二三四在线| 国产日产亚洲精品系列| 精品日韩99亚洲| 亚洲视频图片小说| 看片的网站亚洲| 91免费版pro下载短视频| 欧美日韩国产123区| 欧美大白屁股肥臀xxxxxx| 9久草视频在线视频精品| 欧美另类变人与禽xxxxx| 中文成人av在线| 日韩主播视频在线| 91网站视频在线观看| 精品国产乱码久久久久久蜜臀 | 26uuu成人网一区二区三区| 国产精品久久久久久福利一牛影视| |精品福利一区二区三区| 精品一区二区在线视频| 欧美午夜宅男影院| 亚洲欧洲成人自拍| 床上的激情91.| 国产日韩一级二级三级| 另类小说色综合网站| 欧美高清视频不卡网| 青青草一区二区三区| av一二三不卡影片| 国产精品视频你懂的| 国产白丝精品91爽爽久久| 日韩一区二区三区电影在线观看| 亚洲精品少妇30p| 日本国产一区二区| 久久欧美一区二区| 国内国产精品久久| 久久这里只有精品6| 美女一区二区在线观看| 日韩免费一区二区三区在线播放| 亚洲五月六月丁香激情| 亚洲国产精品精华液网站 | 亚洲精品视频免费看| 在线观看日韩高清av| 亚洲男同1069视频| 欧美乱熟臀69xxxxxx| 一区二区在线看| 欧美在线一区二区三区| 亚洲精品在线三区| 久久久激情视频| 国产精品无圣光一区二区| 成人黄色a**站在线观看| 椎名由奈av一区二区三区| 欧美精品日韩精品| 黑人巨大精品欧美黑白配亚洲| 国产亚洲一区二区三区在线观看| 成人黄色在线看| 日本不卡免费在线视频| 国产精品日韩精品欧美在线| 色综合中文综合网| 夜夜亚洲天天久久| 亚洲一区二区三区四区中文字幕| 亚洲一区视频在线观看视频| 久久电影网电视剧免费观看| 亚洲欧美日韩电影| 五月综合激情网| 久久综合精品国产一区二区三区 | 久久嫩草精品久久久久| 久久久久九九视频| 日韩一级高清毛片| 欧美日韩不卡一区二区| 一区二区三区四区高清精品免费观看 | 欧美www视频| 97久久精品人人做人人爽| 日韩精品一级二级| 亚洲丝袜美腿综合| 国产欧美日韩另类一区| 日韩午夜中文字幕| 欧美一区二区三区系列电影| 在线精品亚洲一区二区不卡| 国产精品综合一区二区三区| 国产无人区一区二区三区| 欧美一级日韩免费不卡| 欧美色图片你懂的| 欧美肥大bbwbbw高潮| 精品视频在线免费看| 欧美色爱综合网| 欧美一区二区三区不卡| 制服丝袜亚洲网站| 日韩三级伦理片妻子的秘密按摩| 91精品国产欧美一区二区成人 | 国内精品免费**视频| 极品少妇一区二区| 丁香网亚洲国际| av成人动漫在线观看| 欧美三级中文字幕在线观看| 欧美日韩国产123区| 日韩精品专区在线影院观看| 欧美大黄免费观看| 久久激情综合网| 岛国一区二区在线观看| 在线观看一区不卡| 日韩精品中文字幕一区二区三区 | 国产成人在线观看| 91麻豆国产在线观看| 欧美日韩精品福利| 久久影院视频免费| 亚洲国产成人va在线观看天堂| 男女男精品网站| 99精品黄色片免费大全| 成人免费毛片app| 欧美精品一二三区| **性色生活片久久毛片| 亚洲图片欧美一区| 国产一区二区不卡老阿姨| 色噜噜久久综合| 久久影院视频免费| 日本视频中文字幕一区二区三区| 成人深夜在线观看| 日韩欧美自拍偷拍| 亚洲国产精品久久人人爱蜜臀| 国产精品影视在线观看| 精品免费国产一区二区三区四区| 亚洲精品高清在线| 91蜜桃免费观看视频| 国产精品久久久久久久浪潮网站| 免费看欧美女人艹b| 7777精品伊人久久久大香线蕉的 | 美女在线视频一区| 亚洲一二三区在线观看| 成人性生交大合| 中文在线免费一区三区高中清不卡| 日本女优在线视频一区二区 | 国产成人夜色高潮福利影视| 91精品国产一区二区| 麻豆久久一区二区| 欧美成人aa大片|