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

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

?? importattributetag.java

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

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;


/**
  *  Import attribute from component to requested scope.
  *  Attribute name and scope are optional. If not specified, all component
  *  attributes are imported in page scope.
 */

public class ImportAttributeTag extends TagSupport {

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


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

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


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

        super.release();
        name = null;
        scopeName = null;
        scope = PageContext.PAGE_SCOPE;
        isErrorIgnored = false;
    }

    /**
     * Get the name.
     * @return Name.
     */
    public String getName()
     {
     return (this.name);
     }


    /**
     * Set the name.
     * @param name The new name
     */
    public void setName(String name)
     {
     this.name = name;
     }

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

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

    /**
     * Set ignore flag.
     * @param ignore default: <code>false</code>: Exception is thrown when attribute is not found, set to <code>
     * true</code> to ignore missing attributes silently
     */
  public void setIgnore(boolean ignore)
    {
    this.isErrorIgnored = ignore;
    }

    /**
     * Get ignore flag.
     * @return default: <code>false</code>: Exception is thrown when attribute is not found, set to <code>
     * true</code> to ignore missing attributes silently
     */
  public boolean getIgnore()
  {
  return isErrorIgnored;
  }

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


    /**
     * Expose the requested property from component context.
     *
     * @exception JspException On errors processing tag.
     */
public int doStartTag() throws JspException
    {
      // retrieve component context
    ComponentContext compContext = (ComponentContext)pageContext.getAttribute(ComponentConstants.COMPONENT_CONTEXT, PageContext.REQUEST_SCOPE);
    if( compContext == null )
        throw new JspException ( "Error - tag importAttribute : no tiles context found." );

      // set scope
    scope = TagUtils.getScope( scopeName, PageContext.PAGE_SCOPE );

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

      pageContext.setAttribute(name, value, scope);
      }
     else
      { // set all attributes
      Iterator names = compContext.getAttributeNames();
      while(names.hasNext())
        {
        String name = (String)names.next();
        if(name == null ) {
          if(!isErrorIgnored)
            throw new JspException ( "Error - tag importAttribute : encountered an attribute with key 'null'" );
          else
            return SKIP_BODY;
        }

        Object value = compContext.getAttribute(name);
        // Check if value exist and if we must send a runtime exception
        if( value == null ) {
          if(!isErrorIgnored)
            throw new JspException ( "Error - tag importAttribute : property '"+ name + "' has a value of 'null'" );
          else
            return SKIP_BODY;
        }
        pageContext.setAttribute(name, value, scope);
        } // end loop
      } // end else

      // Continue processing this page
    return SKIP_BODY;
    }

    /**
     * Clean up after processing this enumeration.
     *
     * @exception JspException On errors processing tag.
     */
  public int doEndTag() throws JspException
    {
    return (EVAL_PAGE);
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久www免费人成精品| 成人h动漫精品一区二| 国产精品1区二区.| 国产在线一区二区| 麻豆精品新av中文字幕| 日韩**一区毛片| 午夜视频在线观看一区| 亚洲精品成人悠悠色影视| 亚洲午夜影视影院在线观看| 亚洲一卡二卡三卡四卡| 日韩和欧美一区二区三区| 久久疯狂做爰流白浆xx| 国产成人午夜高潮毛片| 亚洲妇熟xx妇色黄| 国产亚洲精品aa| 欧美一级高清大全免费观看| 国产91色综合久久免费分享| 国产精品白丝jk白祙喷水网站| 亚洲网友自拍偷拍| 日本不卡在线视频| 亚洲国产毛片aaaaa无费看| 日韩三级av在线播放| 欧美一级日韩一级| 欧美日本视频在线| 91麻豆福利精品推荐| 国产老妇另类xxxxx| 久久精品国产精品亚洲精品| 久久爱www久久做| 天天综合网 天天综合色| 一区二区三区欧美在线观看| 国产日产精品1区| 久久人人爽人人爽| 久久综合久久99| 2022国产精品视频| 91精品国产综合久久香蕉的特点| 欧美亚洲一区二区在线观看| 成人av网址在线| 不卡大黄网站免费看| 91福利国产精品| 色哟哟亚洲精品| 亚洲精品国产精华液| 亚洲欧洲三级电影| 午夜精品久久久久久久久| 国产精品亚洲一区二区三区妖精 | 丁香网亚洲国际| 欧美一区二区三区在线电影| 国产精品色婷婷| 亚洲123区在线观看| 久久99精品久久久久久动态图 | 国产一区二区在线视频| 美日韩黄色大片| 成人免费视频网站在线观看| 91在线观看成人| 国产精品成人一区二区三区夜夜夜 | 亚洲成人高清在线| 狠狠网亚洲精品| 欧美中文字幕不卡| 日韩欧美精品在线| 日本在线不卡一区| 欧美在线999| 三级影片在线观看欧美日韩一区二区 | 免费成人在线视频观看| 色哟哟一区二区三区| 亚洲日本在线天堂| 国产精品1区二区.| 《视频一区视频二区| 国产在线观看一区二区| 欧美色图12p| 欧美激情一区二区三区不卡| 日本欧美韩国一区三区| 欧美丝袜丝交足nylons| 亚洲欧美国产77777| 国产精品久久看| 激情综合网最新| 欧美老人xxxx18| 亚洲男同性恋视频| 欧美日韩国产一级片| 国产综合色精品一区二区三区| 国产成人在线视频免费播放| 国产精品久久福利| 欧美一区二区日韩| 国产成人精品一区二| 欧美乱妇15p| 久久国产欧美日韩精品| 精品久久一区二区三区| 国产精品18久久久久久久网站| 日韩一级完整毛片| 美腿丝袜亚洲三区| 久久婷婷久久一区二区三区| 黄一区二区三区| 久久午夜免费电影| 狠狠色丁香婷婷综合久久片| 国产婷婷色一区二区三区四区| 国产激情精品久久久第一区二区| 国产精品第一页第二页第三页| 成人sese在线| 日本不卡的三区四区五区| 欧美国产精品中文字幕| 91视频在线观看免费| 国产精品黄色在线观看| 在线国产电影不卡| 国产91精品久久久久久久网曝门| 国产精品高潮呻吟久久| 欧美日韩在线精品一区二区三区激情| 日韩高清不卡一区| 一区二区三区日韩欧美| 一区二区三区在线视频观看| 国产欧美日韩中文久久| 欧美日韩一区二区三区四区| 激情综合色综合久久| 图片区小说区国产精品视频| 精品国产电影一区二区 | 亚洲国产毛片aaaaa无费看| 精品国产伦一区二区三区观看方式| 日本久久一区二区三区| 99久久伊人久久99| 91麻豆精品在线观看| 亚洲成a人v欧美综合天堂下载| 国产精品无遮挡| 555夜色666亚洲国产免| 在线电影一区二区三区| 26uuu精品一区二区| 中文字幕第一区二区| 国产夜色精品一区二区av| 不卡一卡二卡三乱码免费网站| 欧美性生活久久| 欧美丝袜丝nylons| 国产mv日韩mv欧美| 日本在线不卡一区| 麻豆免费精品视频| 69久久夜色精品国产69蝌蚪网| 国产成人av影院| 色哟哟一区二区在线观看| av在线不卡电影| 精品国产91九色蝌蚪| 中文字幕精品综合| 亚洲成人av在线电影| 青青草国产精品亚洲专区无| 成人三级在线视频| 日本成人在线不卡视频| 国产二区国产一区在线观看| 北条麻妃国产九九精品视频| 久久99久久99小草精品免视看| 国产一区二区福利| 成人中文字幕电影| 日韩欧美国产系列| 国产精品免费视频网站| 日韩电影在线一区| 欧美在线你懂的| 欧美电影在哪看比较好| 中文字幕中文字幕一区| 亚洲妇女屁股眼交7| 成人午夜电影小说| 精品盗摄一区二区三区| 麻豆国产欧美一区二区三区| 色婷婷激情久久| 国产香蕉久久精品综合网| 日韩中文字幕一区二区三区| 色94色欧美sute亚洲线路一久| 久久久国产精华| 韩国女主播一区| 一本色道亚洲精品aⅴ| 日韩欧美成人一区二区| 精品电影一区二区| 午夜一区二区三区视频| 成人精品亚洲人成在线| 在线视频国内自拍亚洲视频| 亚洲香肠在线观看| 色综合久久中文综合久久97| 国产视频不卡一区| 国产成人综合精品三级| 日韩欧美国产不卡| 亚洲影视资源网| 欧美日韩国产另类不卡| 亚洲欧美一区二区不卡| 不卡一区二区三区四区| 亚洲综合免费观看高清完整版| 欧美一区二区不卡视频| 福利电影一区二区三区| 亚洲第一搞黄网站| 26uuu精品一区二区| 日韩精品一级中文字幕精品视频免费观看 | 午夜影视日本亚洲欧洲精品| 欧美性xxxxx极品少妇| 一区二区不卡在线视频 午夜欧美不卡在 | 在线播放中文一区| 久久99久久99精品免视看婷婷 | 欧美精品1区2区3区| 豆国产96在线|亚洲| 午夜久久电影网| 久久精品水蜜桃av综合天堂| 国产91色综合久久免费分享| 亚洲精品久久7777| 91麻豆精品国产91久久久使用方法| 日韩av中文字幕一区二区三区 | 在线观看日产精品| 久久精品99国产精品| 麻豆精品久久久| 69堂成人精品免费视频| 国产成人免费视频精品含羞草妖精|