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

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

?? useattributetag.java

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

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

import org.apache.struts.taglib.tiles.util.TagUtils;
import org.apache.struts.tiles.ComponentContext;


/**
 * Custom tag exposing a component attribute to page.
 *
 */
public class UseAttributeTag extends TagSupport {


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


    /**
     * Class name of object.
     */
    private String  classname = null;


    /**
     * The scope name.
     */
    private String scopeName = null;

    /**
     * The scope value.
     */
    private int scope = PageContext.PAGE_SCOPE;



    /**
     * The attribute name to be exposed.
     */
    private String attributeName = null;

    /**
     * Are errors ignored. This is the property for attribute 'ignore'.
     * Default value is <code>false</code>, which throws an exception.
     * Only "attribute not found" - errors are ignored.
     */
  protected boolean isErrorIgnored = false;


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


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

        super.release();
        attributeName = null;
        classname = null;
        scope = PageContext.PAGE_SCOPE;
        scopeName = null;
        isErrorIgnored = false;
          // Parent doesn't clear id, so we do it
          // bug reported by Heath Chiavettone on 18 Mar 2002
        id = null;
    }

    /**
     * Get class name.
     */
    public String getClassname() {

  return (this.classname);

    }


    /**
     * Set the class name.
     *
     * @param name The new class name.
     */
    public void setClassname(String name) {

  this.classname = name;

    }

    /**
     * Set name.
     */
  public void setName(String value){
    this.attributeName = value;
  }

    /**
     * Get name.
     */
  public String getName()
  {
  return attributeName;
  }

    /**
     * Set the scope.
     *
     * @param scope The new scope.
     */
    public void setScope(String scope) {
  this.scopeName = scope;
    }

    /**
     * Get scope.
     */
  public String getScope()
  {
  return scopeName;
  }

    /**
     * Set ignore.
     */
  public void setIgnore(boolean ignore)
    {
    this.isErrorIgnored = ignore;
    }

    /**
     * Get ignore.
     */
  public boolean getIgnore()
  {
  return isErrorIgnored;
  }

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


    /**
     * Expose the requested attribute from component context.
     *
     * @exception JspException if a JSP exception has occurred
     */
  public int doStartTag() throws JspException
    {
      // Do a local copy of id
    String localId=this.id;
    if( localId==null )
      localId=attributeName;

    ComponentContext compContext = (ComponentContext)pageContext.getAttribute( ComponentConstants.COMPONENT_CONTEXT, PageContext.REQUEST_SCOPE);
    if( compContext == null )
      throw new JspException ( "Error - tag useAttribute : no tiles context found." );

    Object value = compContext.getAttribute(attributeName);
        // Check if value exists and if we must send a runtime exception
    if( value == null )
      if(!isErrorIgnored)
        throw new JspException ( "Error - tag useAttribute : attribute '"+ attributeName + "' not found in context. Check tag syntax" );
       else
        return SKIP_BODY;

    if( scopeName != null )
      {
      scope = TagUtils.getScope( scopeName, PageContext.PAGE_SCOPE );
      if(scope!=ComponentConstants.COMPONENT_SCOPE)
        pageContext.setAttribute(localId, value, scope);
      }
     else
      pageContext.setAttribute(localId, value);

      // Continue processing this page
    return SKIP_BODY;
    }




    /**
     * Clean up after processing this enumeration.
     *
     * @exception JspException if a JSP exception has occurred
     */
  public int doEndTag() throws JspException
    {
    return (EVAL_PAGE);
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频一二三| 国产亚洲一区二区三区在线观看| 成人综合在线视频| 国产成人免费在线| 国产一区二区三区久久久| 国产在线不卡视频| 国产a久久麻豆| 成人免费三级在线| 91在线免费播放| 一本大道久久a久久精品综合| av激情成人网| 91成人在线免费观看| 欧美无乱码久久久免费午夜一区| 欧美日韩卡一卡二| 日韩欧美中文字幕公布| 精品精品国产高清a毛片牛牛| 2022国产精品视频| 国产精品嫩草影院av蜜臀| 1024成人网| 偷拍日韩校园综合在线| 久久er精品视频| 国产精品夜夜爽| 91香蕉视频黄| 678五月天丁香亚洲综合网| 日韩手机在线导航| 国产日产欧美一区二区三区| 亚洲欧美日韩中文播放| 亚洲h在线观看| 蜜臀99久久精品久久久久久软件| 国产精品一区二区男女羞羞无遮挡| jlzzjlzz亚洲日本少妇| 欧美日韩在线播放三区| 日韩欧美高清一区| 不卡一卡二卡三乱码免费网站| 麻豆freexxxx性91精品| 国产成人免费在线观看不卡| 在线亚洲高清视频| 欧美成人激情免费网| 国产精品久久久久久户外露出| 亚洲小说欧美激情另类| 经典三级在线一区| 91高清视频在线| 欧美tickling网站挠脚心| 中文字幕一区二| 日本特黄久久久高潮| 成人午夜电影小说| 欧美一区二区三区视频免费播放| 日本一区二区高清| 日本最新不卡在线| 不卡一卡二卡三乱码免费网站| 3d成人h动漫网站入口| 中文字幕精品在线不卡| 日韩和欧美的一区| 白白色 亚洲乱淫| 日韩久久久久久| 亚洲精品少妇30p| 国产成人av影院| 日韩一区二区三区精品视频 | 国产精品欧美久久久久一区二区| 亚洲小说欧美激情另类| 成人中文字幕电影| 欧美大胆一级视频| 亚洲综合另类小说| av电影一区二区| 亚洲精品在线观看视频| 亚洲bdsm女犯bdsm网站| 色综合中文字幕| 国产欧美日韩三区| 久久 天天综合| 欧美日韩国产a| 亚洲一区二区三区视频在线播放 | 久久99久国产精品黄毛片色诱| 欧美性生活久久| 亚洲视频香蕉人妖| 国产精品一区二区久久不卡| 欧美一级久久久| 天天亚洲美女在线视频| 欧洲精品视频在线观看| 亚洲欧洲av在线| 不卡的av中国片| 国产女主播视频一区二区| 久久精品72免费观看| 6080日韩午夜伦伦午夜伦| 亚洲影院在线观看| 日本乱人伦aⅴ精品| 中文字幕一区二区不卡| 在线亚洲一区二区| 三级欧美在线一区| 91国偷自产一区二区三区观看| 中文字幕一区二区在线观看| 国产成人免费在线观看不卡| 久久伊99综合婷婷久久伊| 美女在线一区二区| 欧美精品久久久久久久多人混战| 亚洲一区二区综合| 欧美视频在线播放| 香蕉影视欧美成人| 3d成人动漫网站| 麻豆精品蜜桃视频网站| 欧美成人video| 久久99国产精品麻豆| 精品国产污污免费网站入口| 老色鬼精品视频在线观看播放| 日韩免费视频一区| 久久精品国产99国产| 久久欧美一区二区| 岛国一区二区在线观看| 亚洲欧洲av另类| 在线欧美日韩国产| 日韩国产精品91| 日韩欧美视频在线| 国产精品综合久久| 国产精品久久久久桃色tv| 97se亚洲国产综合自在线观| 一区二区三区欧美亚洲| 欧美精品丝袜中出| 久久99国产精品成人| 国产亚洲一本大道中文在线| 国产99久久久精品| 亚洲乱码国产乱码精品精可以看| 欧美日韩你懂得| 免费成人美女在线观看.| 久久久精品tv| 在线亚洲免费视频| 免费成人在线观看| 国产亚洲美州欧州综合国| 91视频.com| 日本欧美在线看| 欧美国产一区二区在线观看 | 日本一区二区视频在线观看| 北岛玲一区二区三区四区| 亚洲一二三四久久| 精品剧情v国产在线观看在线| 丁香激情综合五月| 亚洲va欧美va人人爽| 久久久久99精品国产片| 欧美在线视频你懂得| 蜜桃一区二区三区四区| 中文字幕一区二区三区四区| 欧美精三区欧美精三区| 岛国av在线一区| 视频一区二区三区入口| 国产精品美女久久久久久久久 | 欧美吞精做爰啪啪高潮| 久久 天天综合| 一区二区在线观看免费| 久久亚洲私人国产精品va媚药| 99久久久久久| 日韩黄色一级片| 国产精品灌醉下药二区| 欧美精品免费视频| 成人av电影免费在线播放| 免费欧美高清视频| 亚洲欧美电影院| 久久久久国产一区二区三区四区| 欧美伊人久久久久久久久影院 | 日本一区二区视频在线观看| 欧美色视频一区| 粉嫩绯色av一区二区在线观看 | 成人国产精品免费观看动漫 | 欧洲生活片亚洲生活在线观看| 国产专区综合网| 亚洲成a人v欧美综合天堂下载| 国产精品私人影院| 日韩一区在线看| 午夜精品久久久久久久99樱桃| 青青草国产精品97视觉盛宴| 久久精品国产一区二区| 成人午夜激情在线| 欧美美女激情18p| 久久久久久久久久久久久久久99 | 国产精品99久久久久| 国产乱码精品一区二区三区av | 亚洲欧美日韩综合aⅴ视频| 日韩毛片视频在线看| 免费高清在线一区| 99vv1com这只有精品| 久久综合网色—综合色88| 天堂va蜜桃一区二区三区漫画版| 欧美高清www午色夜在线视频| 一区二区三区四区中文字幕| heyzo一本久久综合| 首页综合国产亚洲丝袜| 日韩视频在线一区二区| 看国产成人h片视频| 精品欧美乱码久久久久久| 久久精品亚洲精品国产欧美| 一色屋精品亚洲香蕉网站| 成人精品视频一区| 狠狠v欧美v日韩v亚洲ⅴ| 偷窥少妇高潮呻吟av久久免费| 国产精品毛片a∨一区二区三区| 正在播放亚洲一区| 在线精品亚洲一区二区不卡| 国产成人av影院| 国产成人在线免费观看| 激情五月婷婷综合网| 九九九精品视频| 久久精品国产99国产| 综合久久久久综合|