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

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

?? definetag.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: DefineTag.java 190780 2005-06-15 17:09:02Z jholmes $ 
 *
 * 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 javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.BodyTagSupport;

import org.apache.struts.taglib.TagUtils;
import org.apache.struts.util.MessageResources;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * Define a scripting variable based on the value(s) of the specified
 * bean property.
 *
 * @version $Rev: 190780 $ $Date: 2005-06-15 18:09:02 +0100 (Wed, 15 Jun 2005) $
 */

public class DefineTag extends BodyTagSupport {

    /**
      * Commons logging instance.
      */
     private static final Log log = LogFactory.getLog(DefineTag.class);

    // ---------------------------------------------------- Protected variables

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


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


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


    /**
     * The name of the scripting variable that will be exposed as a page
     * scope attribute.
     */
    protected String id = null;

    public String getId() {
        return (this.id);
    }

    public void setId(String id) {
        this.id = id;
    }


    /**
     * The name of the bean owning the property to be exposed.
     */
    protected String name = null;

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

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


    /**
     * The name of the property to be retrieved.
     */
    protected String property = null;

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

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


    /**
     * The scope within which to search for the specified bean.
     */
    protected String scope = null;

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

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


    /**
     * The scope within which the newly defined bean will be creatd.
     */
    protected String toScope = null;

    public String getToScope() {
        return (this.toScope);
    }

    public void setToScope(String toScope) {
        this.toScope = toScope;
    }


    /**
     * The fully qualified Java class name of the value to be exposed.
     */
    protected String type = null;

    public String getType() {
        return (this.type);
    }

    public void setType(String type) {
        this.type = type;
    }


    /**
     * The (String) value to which the defined bean will be set.
     */
    protected String value = null;

    public String getValue() {
        return (this.value);
    }

    public void setValue(String value) {
        this.value = value;
    }


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


    /**
     * Check if we need to evaluate the body of the tag
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doStartTag() throws JspException {
       
        return (EVAL_BODY_TAG);

    }


    /**
     * Save the body content of this tag (if any), or throw a JspException
     * if the value was already defined.
     *
     * @exception JspException if value was defined by an attribute
     */
    public int doAfterBody() throws JspException {

        if (bodyContent != null) {
            body = bodyContent.getString();
            if (body != null) {
                body = body.trim();
            }
            if (body.length() < 1) {
                body = null;
            }
        }
        return (SKIP_BODY);

    }


    /**
     * Retrieve the required property and expose it as a scripting variable.
     *
     * @exception JspException if a JSP exception has occurred
     */
    public int doEndTag() throws JspException {

        // Enforce restriction on ways to declare the new value
        int n = 0;
        if (this.body != null) {
            n++;
        }
        if (this.name != null) {
            n++;
        }
        if (this.value != null) {
            n++;
        }
        if (n > 1) {
            JspException e =
                new JspException(messages.getMessage("define.value", id));
            TagUtils.getInstance().saveException(pageContext, e);
            throw e;
        }

        // Retrieve the required property value
        Object value = this.value;
        if ((value == null) && (name != null)) {
            value = TagUtils.getInstance().lookup(pageContext, name, property, scope);
        }
        if ((value == null) && (body != null)) {
            value = body;
        }
        if (value == null) {
            JspException e =
                new JspException(messages.getMessage("define.null", id));
            TagUtils.getInstance().saveException(pageContext, e);
            throw e;
        }

        // Expose this value as a scripting variable
        int inScope = PageContext.PAGE_SCOPE;
        try {
			if (toScope != null) {
				inScope = TagUtils.getInstance().getScope(toScope);
			}
		} catch (JspException e) {
            log.warn("toScope was invalid name so we default to PAGE_SCOPE", e);
		}
            
        pageContext.setAttribute(id, value, inScope);

        // Continue processing this page
        return (EVAL_PAGE);

    }

    /**
     * Release all allocated resources.
     */
    public void release() {

        super.release();
        body = null;
        id = null;
        name = null;
        property = null;
        scope = null;
        toScope = "page";
        type = null;
        value = null;

    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲一区二区三区四区 | 日本欧美久久久久免费播放网| 日韩一区精品字幕| 成人激情午夜影院| 精品国精品自拍自在线| 亚洲一区二区三区在线看| 国产一区二区三区综合| 制服丝袜成人动漫| 亚洲精品亚洲人成人网在线播放| 国产剧情一区在线| 777久久久精品| 亚洲一区二区三区四区的| 国产精品1区2区3区在线观看| 欧美高清精品3d| 亚洲精品免费看| av日韩在线网站| 国产日韩精品视频一区| 蜜桃免费网站一区二区三区| 欧美日韩免费一区二区三区视频| 亚洲日本在线天堂| 国产成人午夜视频| 欧美亚洲日本国产| 亚洲欧美日韩电影| 成人99免费视频| 久久久.com| 国产99久久久国产精品免费看| 欧美一区二区三区电影| 日日噜噜夜夜狠狠视频欧美人| 欧美亚洲精品一区| 亚洲第一成年网| 日本高清不卡视频| 亚洲一区二区三区四区在线观看 | 成人免费在线播放视频| 国产一区三区三区| 国产欧美一区二区三区网站 | 另类综合日韩欧美亚洲| 日韩一级黄色大片| 精品一区二区三区视频在线观看| 精品国产乱码久久久久久影片| 激情五月婷婷综合| 2023国产精华国产精品| 国产精品一区不卡| 国产精品初高中害羞小美女文| 91捆绑美女网站| 亚洲成人综合视频| 精品免费国产一区二区三区四区| 国产精品乡下勾搭老头1| 亚洲国产精品成人综合| 白白色 亚洲乱淫| 一区二区三区**美女毛片| 色天使色偷偷av一区二区| 亚洲一区二区三区四区五区黄| 91精品国产欧美日韩| 久久99在线观看| 国产精品婷婷午夜在线观看| 96av麻豆蜜桃一区二区| 午夜在线电影亚洲一区| 久久99这里只有精品| 亚洲自拍偷拍综合| 精品在线你懂的| 在线成人免费观看| 韩国av一区二区| 国产精品家庭影院| 欧美羞羞免费网站| 国内精品在线播放| 亚洲日本一区二区| 欧美一区二区三区系列电影| 粉嫩av一区二区三区粉嫩| 亚洲一线二线三线久久久| 欧美成人video| 在线观看91精品国产入口| 久久精品72免费观看| 亚洲视频在线观看三级| 日韩一级二级三级| 97se亚洲国产综合自在线| 麻豆极品一区二区三区| 国产精品电影一区二区| 欧美日本韩国一区二区三区视频| 国产精品亚洲午夜一区二区三区 | 日韩精品中文字幕一区二区三区| 国产精品一卡二卡在线观看| 一区二区三区四区五区视频在线观看| 9191成人精品久久| av一区二区三区| 国产一区二区调教| 午夜天堂影视香蕉久久| 国产精品久久久久久久裸模| 欧美一区二区播放| 色狠狠综合天天综合综合| 狠狠色丁香九九婷婷综合五月| 一区二区三区不卡视频 | 日韩免费观看高清完整版在线观看| av亚洲精华国产精华精华 | 亚洲成人自拍一区| 亚洲婷婷国产精品电影人久久| 欧美精品一区二区三区蜜桃 | 成人蜜臀av电影| 精品亚洲免费视频| 午夜精彩视频在线观看不卡| 国产精品女同一区二区三区| 欧美tickling网站挠脚心| 欧美精品日韩一本| 欧美综合亚洲图片综合区| 国产一区二区三区黄视频| 午夜精品久久久久久久久久| 亚洲精品国产精品乱码不99 | 亚洲第四色夜色| 亚洲综合一区二区三区| 综合久久综合久久| 一区在线观看视频| 中文字幕高清不卡| 国产精品天天摸av网| 国产欧美精品一区二区三区四区 | 国产精品1024| 精品一区二区三区在线观看| 日韩黄色一级片| 日韩国产在线观看一区| 亚洲动漫第一页| 日韩精品一二区| 蜜臀国产一区二区三区在线播放| 午夜久久久久久电影| 婷婷久久综合九色综合伊人色| 亚洲成人www| 日韩高清电影一区| 九九热在线视频观看这里只有精品| 免费人成精品欧美精品| 久久se精品一区精品二区| 精品午夜久久福利影院| 国产精品自拍在线| av在线不卡电影| 在线精品视频一区二区| 欧美日韩国产影片| 欧美不卡123| 欧美国产国产综合| 亚洲视频免费观看| 午夜视频在线观看一区| 黄一区二区三区| 99国产精品国产精品久久| 欧美在线999| 日韩一级免费观看| 国产精品久久毛片a| 亚洲国产精品欧美一二99| 免费成人深夜小野草| 成人永久看片免费视频天堂| 91美女在线视频| 91精品国产欧美一区二区成人| 久久九九国产精品| 亚洲午夜国产一区99re久久| 国产精品久久久久久久久快鸭 | 91国产成人在线| 777奇米成人网| 欧美国产一区二区在线观看| 中文字幕欧美日本乱码一线二线| 亚洲精品日日夜夜| 精品在线免费观看| 99r精品视频| 精品国产一区二区三区久久久蜜月| 中文av一区特黄| 日韩国产欧美视频| www.亚洲国产| 欧美mv和日韩mv的网站| 亚洲品质自拍视频| 国产激情91久久精品导航| 在线观看av一区二区| 日本一区二区三区高清不卡| 天天综合色天天| 色婷婷综合久久久中文字幕| 精品国产乱码久久久久久图片| 亚洲图片一区二区| 99re在线精品| 欧美一级久久久| 精品一区二区三区在线视频| 日韩在线一区二区| 97se狠狠狠综合亚洲狠狠| 精品福利视频一区二区三区| 亚洲国产精品尤物yw在线观看| 成人福利视频网站| 亚洲精品在线免费观看视频| 亚洲.国产.中文慕字在线| 91首页免费视频| 国产日韩精品一区| 国产精品99久久久| 欧美精品一区二区在线播放| 免费欧美高清视频| 欧美日本一区二区| 午夜视黄欧洲亚洲| 欧美三级电影网| 亚洲一区二区影院| 欧美色综合久久| 亚洲免费高清视频在线| av在线一区二区三区| 国产精品国产馆在线真实露脸| 国产iv一区二区三区| 国产偷v国产偷v亚洲高清| 国产乱码精品一区二区三区av| 精品国产三级a在线观看| 激情久久五月天| 精品成人私密视频| 国产伦精品一区二区三区免费| 久久久精品国产免费观看同学|