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

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

?? forumtag.java

?? 這是學習Java必須讀懂兩套源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/**
 * Copyright (C) 2001 Yasna.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        Yasna.com (http://www.yasna.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Yazd" and "Yasna.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact yazd@yasna.com.
 *
 * 5. Products derived from this software may not be called "Yazd",
 *    nor may "Yazd" appear in their name, without prior written
 *    permission of Yasna.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL YASNA.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of Yasna.com. For more information
 * on Yasna.com, please see <http://www.yasna.com>.
 */

/**
 * Copyright (C) 2000 CoolServlets.com. All rights reserved.
 *
 * ===================================================================
 * The Apache Software License, Version 1.1
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by
 *        CoolServlets.com (http://www.coolservlets.com)."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Jive" and "CoolServlets.com" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please
 *    contact webmaster@coolservlets.com.
 *
 * 5. Products derived from this software may not be called "Jive",
 *    nor may "Jive" appear in their name, without prior written
 *    permission of CoolServlets.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL COOLSERVLETS.COM OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CoolServlets.com. For more information
 * on CoolServlets.com, please see <http://www.coolservlets.com>.
 */

package com.Yasna.forum.tags;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.*;
import com.Yasna.forum.*;
import com.Yasna.forum.tags.*;

/**
 * JSP Tag <b>forum</b>, used to get information about current forum.
 * <p>
 * Requires that attribute <b>id</b> be set to the name of a
 * script variable for later use in JSP to retrieve Forum data
 * using &lt;jsp:getProperty/&gt;.
 * <p>
 * If optional attribute <b>trackVisits</b>="true", the date of the
 * users last visit to the forum will be saved when the user logs out
 * or their current session ends.
 * <p>
 * Optional attribute <b>match</b> can be set to the <b>id</b> of
 * a <b>match</b> tag to select only those forums that match the
 * forum extended properties specified by the <b>match</b> tag.
 * <p>
 * Gets the current forum from within a <b>forum_loop</b> tag or
 * the current forum from the user state information.
 * <p>
 * JSP Tag Lib Descriptor
 * <p><pre>
 *  &lt;name&gt;forum&lt;/name&gt;
 *  &lt;tagclass&gt;com.Yasna.forum.tags.ForumTag&lt;/tagclass&gt;
 *  &lt;teiclass&gt;com.Yasna.forum.tags.ForumTEI&lt;/teiclass&gt;
 *  &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;
 *  &lt;info&gt;Get the current forum data&lt;/info&gt;
 *  &lt;attribute&gt;
 *    &lt;name&gt;id&lt;/name&gt;
 *    &lt;required&gt;true&lt;/required&gt;
 *    &lt;rtexprvalue&gt;false&lt;/rtexprvalue&gt;
 *  &lt;/attribute&gt;
 *  &lt;attribute&gt;
 *    &lt;name&gt;trackVisits&lt;/name&gt;
 *    &lt;required&gt;false&lt;/required&gt;
 *    &lt;rtexprvalue&gt;false&lt;/rtexprvalue&gt;
 *  &lt;/attribute&gt;
 *  &lt;attribute&gt;
 *    &lt;name&gt;match&lt;/name&gt;
 *    &lt;required&gt;false&lt;/required&gt;
 *    &lt;rtexprvalue&gt;false&lt;/rtexprvalue&gt;
 *  &lt;/attribute&gt;
 * </pre>
 *
 * @see ForumLoopTag
 * @see MatchTag
 * @see YazdProperty
 * @see GetYazdPropertyTag
 * @see SetYazdPropertyTag
 * @see YazdRequest
 *
 * @author Glenn Nielsen
 */

public class ForumTag extends TagSupport implements YazdProperty,
	ChangeForum, NewMessages
{
  private YazdState js = null;
  private YazdRequest jr = null;
  private Forum cf = null;
  // ID's of previous and next forum for use as a navigation aide
  private int prevForumID = -1;
  private int nextForumID = -1;
  // Flag whether date and time of last visit to this forum should be saved
  private boolean trackVisits = false;
  // Hash of forum extended properties to match on when selecting forums
  private Map match = new HashMap();

  /**
   * Method called at start of forum Tag to get Forum
   *
   * @return EVAL_BODY_INCLUDE if there is a forum or SKIP_BODY if there is not a forum to view
   */
  public final int doStartTag() throws JspException
  {
    // Get the user state information
    js = (YazdState)pageContext.getAttribute("yazdUserState",
                PageContext.SESSION_SCOPE);
    if( js == null ) {
      throw new JspException("Yazd forum tag could not get yazd state.");
    }

    // Get the user request information
    jr = (YazdRequest)pageContext.getAttribute("yazdUserRequest",
                PageContext.REQUEST_SCOPE);
    if( jr == null )
      throw new JspException("Yazd forum tag, could not find request");

   // See if we are nested inside a forum_loop tag
   ForumLoopTag fl = null;
    try {
      fl = (ForumLoopTag)this.findAncestorWithClass(this,
        Class.forName("com.Yasna.forum.tags.ForumLoopTag"));
    } catch(Exception e) {
    }

    if( fl != null ) {
      cf = fl.getForum();
      if( fl.getMatch() != null )
        match = fl.getMatch();
    } else {
      // Get the forum from user state information
      cf = jr.getForum();
    }

    if( cf == null || !cf.hasPermission(ForumPermissions.READ) )
      return SKIP_BODY;

    // Get the next and previous forum ID's just in case they are needed
    List forums = jr.getForums(match);
    int nextid;
    int previd = -1;
    int size = forums.size();
    for( int i = 0; i < size; i++ ) {
      nextid = ((Forum)forums.get(i)).getID();
      if( nextid == cf.getID() ) {
        prevForumID = previd;
	if( (i+1) < size )
	  nextForumID = ((Forum)forums.get(i+1)).getID();
	break;
      }
      previd = nextid;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久电影| 91麻豆免费观看| 欧美一区国产二区| 一区二区三区国产| 成人黄色片在线观看| 欧美日本一区二区| 亚洲线精品一区二区三区八戒| 成人三级伦理片| 中文字幕av免费专区久久| 九一久久久久久| 亚洲精品一区二区三区精华液| 免费人成在线不卡| 日韩亚洲欧美中文三级| 午夜电影网一区| 3d动漫精品啪啪1区2区免费| 国产精品女人毛片| 一本色道亚洲精品aⅴ| 一区二区免费在线| 国产精品伊人色| 久久九九全国免费| 成人自拍视频在线观看| 中文字幕一区二区三区乱码在线 | 欧美性感一区二区三区| 亚洲日本va午夜在线影院| 色综合久久中文字幕| 亚洲精品乱码久久久久久日本蜜臀| 97精品国产露脸对白| 亚洲黄色免费电影| 欧美情侣在线播放| 日韩激情在线观看| 久久免费视频色| 激情五月婷婷综合| 国产精品久久午夜| 欧美色涩在线第一页| 综合久久久久久| 欧美日韩国产另类一区| 黄色日韩网站视频| 亚洲人成影院在线观看| 91小视频免费看| 视频在线在亚洲| 国产精品无人区| 欧美喷水一区二区| 久久99久久精品| 日韩毛片高清在线播放| 欧美日韩精品免费| 爽好久久久欧美精品| 中文一区二区在线观看| 色8久久精品久久久久久蜜| 樱桃国产成人精品视频| 日韩一区二区在线观看视频播放| 日日摸夜夜添夜夜添国产精品| 久久久久久久一区| 成人av电影在线播放| 奇米综合一区二区三区精品视频| 久久久精品影视| 欧美视频在线不卡| 日本视频在线一区| 中文字幕亚洲在| 91精品国产色综合久久不卡电影| 国产成人综合网| 亚洲.国产.中文慕字在线| 久久久国产精华| 欧美人狂配大交3d怪物一区| www.在线成人| 国产麻豆成人精品| 免费在线观看不卡| 亚洲欧美日韩一区二区| 久久香蕉国产线看观看99| 欧美色男人天堂| 成人av资源下载| 久久99久久久久久久久久久| 同产精品九九九| 欧美激情艳妇裸体舞| 精品人伦一区二区色婷婷| 欧美午夜影院一区| 欧美军同video69gay| 欧美日韩精品久久久| 欧美日韩色一区| 欧美乱妇20p| 欧美精品色一区二区三区| 欧美久久一二区| 日韩一级片网站| 久久久久久免费| 国产精品久久久久久久第一福利 | 国产精品热久久久久夜色精品三区| 精品动漫一区二区三区在线观看| 国产成人一级电影| 石原莉奈在线亚洲三区| 亚洲色图在线看| 欧美在线播放高清精品| 欧美亚男人的天堂| 欧美伦理视频网站| 日韩欧美一区电影| 精品国产电影一区二区| 久久日韩精品一区二区五区| 欧美国产激情一区二区三区蜜月 | 91免费观看视频在线| 99精品欧美一区| 欧美色综合影院| 欧美激情一区不卡| 亚洲免费在线看| 亚洲成人你懂的| 久久激情综合网| 成人精品视频一区二区三区| 色一区在线观看| 欧美福利视频导航| 久久久精品免费免费| 国产精品电影一区二区| 亚洲国产综合色| 久久国内精品视频| 成a人片国产精品| 欧美日韩国产电影| 国产亚洲欧美日韩在线一区| 亚洲天堂中文字幕| 婷婷国产在线综合| 国产美女视频一区| 在线亚洲一区二区| 精品久久久久久综合日本欧美| 国产色产综合色产在线视频 | 91麻豆国产自产在线观看| 欧美亚男人的天堂| 久久久蜜桃精品| 亚洲成a人片在线观看中文| 黄网站免费久久| 欧美日韩午夜精品| 国产精品不卡在线| 久久精品99国产精品| 99riav久久精品riav| 欧美电视剧在线看免费| 自拍偷在线精品自拍偷无码专区| 蜜臀av性久久久久蜜臀aⅴ| www.日韩大片| 久久人人超碰精品| 亚洲高清不卡在线观看| 亚洲一区二区高清| 日本电影欧美片| 亚洲一区二区三区四区在线免费观看 | 久久久久久久久久久久久夜| 综合精品久久久| 精品影视av免费| 在线一区二区三区四区五区| 精品99一区二区| 亚洲成人7777| 99久久综合色| 欧美精品一区二区在线播放| 亚洲一区在线视频| 99国产精品国产精品久久| 久久久久久综合| 美女尤物国产一区| 色综合中文字幕国产| 日韩一区二区影院| 一区二区不卡在线播放 | 91在线视频播放| 久久免费看少妇高潮| 久久99深爱久久99精品| 4438x成人网最大色成网站| 亚洲综合色视频| 91在线视频免费观看| 国产精品福利一区二区三区| 国产精品一区二区视频| 精品国产伦一区二区三区免费| 爽好久久久欧美精品| 欧美日韩色一区| 亚洲成人激情av| 欧美日本一区二区三区四区| 一区二区高清视频在线观看| 99免费精品在线| 亚洲男女毛片无遮挡| 在线观看91精品国产入口| 亚洲精品乱码久久久久久| 色哟哟精品一区| 亚洲国产精品一区二区久久恐怖片| a4yy欧美一区二区三区| 最新久久zyz资源站| 一本大道久久a久久精二百| 一区二区三区四区在线播放| 色琪琪一区二区三区亚洲区| 亚洲桃色在线一区| 一本大道久久精品懂色aⅴ| 亚洲图片有声小说| 欧美偷拍一区二区| 亚洲国产综合在线| 日韩免费福利电影在线观看| 美女www一区二区| 久久影院电视剧免费观看| 国产很黄免费观看久久| 国产精品夫妻自拍| 欧美中文字幕一二三区视频| 天堂av在线一区| 精品福利在线导航| 成av人片一区二区| 亚洲国产成人av网| 欧美va亚洲va| 国产成人啪午夜精品网站男同| 亚洲国产激情av| 欧美亚洲日本国产| 麻豆91精品视频| 欧美国产精品久久| 欧美日本乱大交xxxxx| 国产精品一区二区无线|