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

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

?? putlisttag.java

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

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

import org.apache.struts.tiles.AttributeDefinition;
import org.apache.struts.tiles.UntypedAttribute;

/**
 * PutList tag implementation.
 */
public class PutListTag
    extends TagSupport
    implements ComponentConstants, AddTagParent, PutListTagParent {

    /** 
     * Name of this attribute. 
     */
    private String attributeName = null;
    
    /** 
     * The list itself. 
     */
    private List list = null;
    
    /** 
     * Role attribute. 
     */
    private String role = null;

    /**
     * Default constructor.
     */
    public PutListTag() {
        super();
    }

    /**
     * Release all allocated resources.
     */
    public void release() {
        super.release();
        attributeName = null;
        role = null;
    }

    /**
     * Release all internal resources.
     */
    protected void releaseInternal() {
        list = null;
    }

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

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

    /**
     * Set role attribute.
     * @param role The role the user must be in to store content.
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * Get role attribute.
     */
    public String getRole() {
        return role;
    }

    /**
     * Get list defined in tag.
     */
    public List getList() {
        return list;
    }

    /**
     * Set property.
     */
    public void addElement(Object value) {
        if (list == null) {
            list = new ArrayList();
        }
        
        list.add(value);
    }

    /**
     * Process nested ≶putList> tag.
     * Method calls by nested ≶putList> tags.
     * Nested list is added to current list.
     * If role is defined, nested attribute is wrapped into an untypped definition
     * containing attribute value and role.
     */
    public void processNestedTag(PutListTag nestedTag) throws JspException {
        // Get real value and check role
        // If role is set, add it in attribute definition if any.
        // If no attribute definition, create untyped one, and set role.
        Object attributeValue = nestedTag.getList();

        if (nestedTag.getRole() != null) {
            AttributeDefinition def = new UntypedAttribute(attributeValue);
            def.setRole(nestedTag.getRole());
            attributeValue = def;
        }
        
        // now add attribute to enclosing parent (i.e. : this object)
        addElement(attributeValue);
    }

    /**
     * Process nested ≶add> tag.
     * Method calls by nested ≶add> tags.
     * Nested attribute is added to current list.
     * If role is defined, nested attribute is wrapped into an untypped definition
     * containing attribute value and role.
     */
    public void processNestedTag(AddTag nestedTag) throws JspException {
        // Get real value and check role
        // If role is set, add it in attribute definition if any.
        // If no attribute definition, create untyped one, and set role.
        Object attributeValue = nestedTag.getRealValue();
        AttributeDefinition def;

        if (nestedTag.getRole() != null) {
            try {
                def = ((AttributeDefinition) attributeValue);
            } catch (ClassCastException ex) {
                def = new UntypedAttribute(attributeValue);
            }
            def.setRole(nestedTag.getRole());
            attributeValue = def;
        }
        
        // now add attribute to enclosing parent (i.e. : this object)
        addElement(attributeValue);
    }

    /**
     * Do start tag.
     */
    public int doStartTag() throws JspException {
        return EVAL_BODY_INCLUDE;
    }

    /**
     * Do end tag.
     */
    public int doEndTag() throws JspException {
        PutListTagParent enclosingParent = findEnclosingParent();
        enclosingParent.processNestedTag(this);
        // Clear list to avoid reuse
        releaseInternal();
        return EVAL_PAGE;
    }

    /**
     * Find enclosing parent tag accepting this tag.
     * @throws JspException If we can't find an appropriate enclosing tag.
     */
    protected PutListTagParent findEnclosingParent() throws JspException {
        try {
            PutListTagParent parent =
                (PutListTagParent) findAncestorWithClass(this,
                    PutListTagParent.class);
                    
            if (parent == null) {
                throw new JspException("Error - tag putList : enclosing tag doesn't accept 'putList' tag.");
            }
            
            return parent;
            
        } catch (ClassCastException ex) {
            throw new JspException("Error - tag putList : enclosing tag doesn't accept 'putList' tag.");
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲日本国产| 日韩一区二区三区视频在线| 欧美日产在线观看| 五月天欧美精品| 91精品国产色综合久久不卡蜜臀 | 日韩欧美国产综合| 视频一区中文字幕国产| 91女人视频在线观看| 亚洲乱码国产乱码精品精小说| 成人av集中营| 亚洲18色成人| 精品国产一二三区| 成人国产精品免费网站| 亚洲狠狠爱一区二区三区| 日韩欧美久久久| 99久久伊人精品| 无码av免费一区二区三区试看| 丁香桃色午夜亚洲一区二区三区| 久久综合色8888| 在线观看视频一区二区欧美日韩| 日本亚洲天堂网| 国产精品久久久久久久久果冻传媒 | 99久久伊人精品| 日韩电影在线一区| 中文字幕在线不卡一区| 欧美一区二区免费| 欧美日韩免费在线视频| 国产精品18久久久久久vr| 亚洲图片欧美色图| 亚洲天堂2016| 欧美激情在线免费观看| 日韩欧美黄色影院| 欧美高清视频不卡网| 北岛玲一区二区三区四区| 另类小说视频一区二区| 日韩专区一卡二卡| 一二三四区精品视频| 国产精品久久久久久亚洲毛片| 精品女同一区二区| 欧美高清精品3d| 欧美日韩亚洲不卡| 一本色道综合亚洲| 91蝌蚪porny九色| 99久久99久久久精品齐齐| eeuss鲁一区二区三区| 国产激情91久久精品导航| 韩国成人在线视频| 另类小说图片综合网| 国产成人综合网| av在线一区二区| 欧美伊人久久久久久久久影院| 亚洲精品欧美二区三区中文字幕| 国产精品视频看| 久久久久久久久久久黄色| 国产午夜精品一区二区三区视频 | 99麻豆久久久国产精品免费| 精品在线观看免费| 国产乱子轮精品视频| 99久久婷婷国产综合精品| 97国产一区二区| 日韩欧美色综合| 亚洲人成影院在线观看| 蜜桃av一区二区在线观看| 精品伊人久久久久7777人| 欧美影片第一页| 国产精品私人影院| 天天操天天综合网| 欧美午夜精品免费| 中文字幕精品综合| 麻豆国产91在线播放| 欧美日韩三级一区二区| 久久久国产精品麻豆| 午夜视频在线观看一区| 国产精品一区二区免费不卡 | 久久久久久一级片| 免费欧美在线视频| 日本精品一级二级| 日韩理论片一区二区| 成人看片黄a免费看在线| 精品处破学生在线二十三| 日韩精品一级二级| 日韩一级片在线播放| |精品福利一区二区三区| 高清不卡在线观看av| 久久婷婷色综合| 成人午夜激情视频| 国产日韩精品一区| 色国产综合视频| 伊人开心综合网| 欧美日韩在线播放一区| 日韩在线播放一区二区| 欧美电影在线免费观看| 国产精品中文字幕欧美| 综合分类小说区另类春色亚洲小说欧美 | 另类综合日韩欧美亚洲| 欧美国产1区2区| 欧美日韩和欧美的一区二区| 蜜臀久久99精品久久久久久9| 久久欧美中文字幕| 91视频国产资源| 久久不见久久见中文字幕免费| 国产网站一区二区| 6080日韩午夜伦伦午夜伦| 成人久久视频在线观看| 午夜欧美大尺度福利影院在线看| 日韩欧美一区二区视频| 色综合久久中文综合久久97 | 亚洲日本在线视频观看| 欧美一级高清大全免费观看| 国产一区二区在线观看视频| **网站欧美大片在线观看| 日韩一级在线观看| 91一区二区在线| 国产盗摄女厕一区二区三区| 亚洲在线免费播放| 国产精品久久久久毛片软件| 精品国产百合女同互慰| 欧美性猛交xxxx黑人交| 色婷婷亚洲婷婷| av一区二区不卡| 另类小说一区二区三区| 欧美午夜电影网| 男女男精品视频| 亚洲人吸女人奶水| 亚洲免费高清视频在线| 亚洲一卡二卡三卡四卡| 日韩av一区二区在线影视| 精品在线播放免费| 国产91对白在线观看九色| 成人va在线观看| 在线欧美日韩精品| 精品福利在线导航| 亚洲国产精品ⅴa在线观看| 亚洲欧美色图小说| 九九久久精品视频| 色狠狠色噜噜噜综合网| 日韩欧美国产综合一区| 亚洲视频1区2区| 国产在线不卡视频| 色综合久久66| 欧美国产一区二区| 麻豆国产精品视频| 色婷婷精品久久二区二区蜜臂av | 色呦呦网站一区| 精品成人免费观看| 图片区小说区国产精品视频| 国产精品亚洲一区二区三区妖精| 在线观看一区二区视频| 欧美韩国一区二区| 国产伦精品一区二区三区免费迷 | 亚洲日本免费电影| 日韩国产一区二| 欧美吻胸吃奶大尺度电影| 中文字幕一区二区三| 激情五月婷婷综合网| 欧美男人的天堂一二区| 亚洲精品综合在线| 欧美在线免费观看亚洲| 国产精品日韩成人| 不卡高清视频专区| 国产精品欧美一区二区三区| 国产成人午夜高潮毛片| 国产婷婷一区二区| 国产suv精品一区二区6| 国产精品福利一区| 91久久一区二区| 亚洲成av人片在线| 日韩视频一区二区三区在线播放 | 久久国产尿小便嘘嘘尿| 欧美一区二视频| 国产成人精品免费视频网站| 国产日韩av一区| 在线一区二区观看| 香蕉加勒比综合久久| 精品国产髙清在线看国产毛片| 久久99国产精品免费网站| 欧美国产1区2区| 欧美一区二区三区在线看| 国产成人aaa| 日韩在线卡一卡二| 中文字幕日韩精品一区| 91精品国产免费久久综合| 国产福利不卡视频| 秋霞电影一区二区| 亚洲欧洲精品天堂一级| 日韩一区二区三区高清免费看看| 国产在线精品一区二区不卡了 | 久久综合资源网| 欧美日本免费一区二区三区| 国产福利不卡视频| 日韩va欧美va亚洲va久久| 国产精品乱码妇女bbbb| 91精品国产一区二区三区蜜臀 | 国产精品一二三四五| 亚洲精品视频免费观看| 欧美一二三四区在线| 欧美中文字幕一二三区视频| 成人看片黄a免费看在线| 狠狠色狠狠色综合系列| 天天射综合影视|