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

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

?? usertag.java

?? 這是學習Java必須讀懂兩套源代碼
?? JAVA
字號:
/**
 * 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>user</b>, used to access account information for
 * a user who posted a message.
 * <p>
 * Requires that attribute <b>id</b> be set to the name of a
 * script variable for later use in JSP to retrieve User data
 * using &lt;jsp:getProperty/&gt;.
 * <p>
 * If the current yazd user is not authorized to view an account
 * property an empty string "" will be returned.
 * <p>
 * Uses the following HTTP input parameter:
 * <li><b>username</b> - username of user to view public account information
 * <p>
 * JSP Tag Lib Descriptor
 * <p><pre>
 * &lt;name&gt;user&lt;/name&gt;
 * &lt;tagclass&gt;com.Yasna.forum.tags.UserTag&lt;/tagclass&gt;
 * &lt;teiclass&gt;com.Yasna.forum.tags.UserTEI&lt;/teiclass&gt;
 * &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;
 * &lt;info&gt;User information for the user who posted the current message being displayed.&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;
 * </pre>
 *
 * @see MessageTag
 * @see YazdProperty
 * @see GetYazdPropertyTag
 * @see SetYazdPropertyTag
 * @see YazdState
 * @see YazdRequest
 *
 * @author Glenn Nielsen
 */
public class UserTag extends TagSupport implements YazdProperty
{
  private YazdRequest jr = null;
  private YazdState js = null;
  private User ui = null;

  /**
   * Method used at start of user Tag to get User data for
   * person who posted a message or the user set by the
   * HTML form input parameter "username".
   *
   * @throws JspException on system level error
   *
   * @return EVAL_BODY_INCLUDE if user is found, SKIP_BODY if user could no be found
   */
  public final int doStartTag() throws JspException
  {
    // Get the user request information
    jr = (YazdRequest)pageContext.getAttribute("yazdUserRequest",
                PageContext.REQUEST_SCOPE);
    if( jr == null )
      throw new JspException("Yazd user tag, could not find request");

    // Get the parent message tag
    MessageTag mt = null;
    try {
      mt = (MessageTag)this.findAncestorWithClass(this,
        Class.forName("com.Yasna.forum.tags.MessageTag"));
    } catch(Exception e) {
    }

    if( mt != null ) {
      ui = mt.getUser();
    }

    // Not inside an admin tag, so get a public instance of user
    if( ui == null ) {
     // See if we should get the user based on HTML input parameter
      // username
      ServletRequest req = pageContext.getRequest();
      String tmp;
      if( (tmp = req.getParameter("username")) != null ) {
        ProfileManager pm = jr.getProfileManager();
        try {
          ui = pm.getUser(tmp);
        } catch(UserNotFoundException e) {}
      }
    }

    if( ui == null ) {
      return SKIP_BODY;
    }

    // Save the script variable so JSP author can access user data
    pageContext.setAttribute(id,this,PageContext.PAGE_SCOPE);
    return EVAL_BODY_INCLUDE;
  }

  /**
   * User Email address property which can be obtained by the JSP page
   * using &lt;jsp:getProperty name=<i>"id"</i> property="email"/&gt;
   *
   * @return String - user email address if authorized to view it
   */
  public final String getEmail()
  {
    String email;

    email =  ui.getEmail();
    if( email == null )
      return "";
    return email;
  }

  /**
   * User Name (real name) property which can be obtained by the JSP page
   * using &lt;jsp:getProperty name=<i>"id"</i> property="name"/&gt;
   *
   * @return String - user name (real name) if authorized to view it
   */
  public final String getName()
  {
    String name;

    name =  ui.getName();
    if( name == null )
      return "";
    return name;
  }

  /**
   * User Username (userid) property which can be obtained by the JSP page
   * using &lt;jsp:getProperty name=<i>"id"</i> property="username"/&gt;
   *
   * @return String - user username (forum userid)
   */
  public final String getUsername()
  {
    return ui.getUsername();
  }

  /**
   * Method used by the getYazdProperty tag to get an extended User
   * property from the user tag script variable.
   *
   * @return String - value of the property
   */
  public final String getProperty(String name)
  {
    // Don't allow the special property named "password" to be returned
    if( name.equals("password") )
      return "";
    String tmp = ui.getProperty(name);
    if( tmp != null )return tmp;
    return "";
  }

  /**
   * Method required by the setYazdProperty tag to set an extended User
   * property, disabled in user tag.
   */
  public final void setProperty(String name, String value)
  {
  }

  /**
   * Remove the script variable after forum tag closed out
   */
  public final void release()
  {
    if( id != null && id.length() > 0 )
      pageContext.removeAttribute(id,PageContext.PAGE_SCOPE);
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩无一区二区| 国产剧情一区二区| 欧美精品一区二区三区四区 | 日韩欧美一二三| 91在线视频免费91| 韩国精品在线观看| 精品一区二区三区久久久| 亚洲风情在线资源站| 亚洲一区二区精品久久av| 一区二区三区在线免费观看| 亚洲欧美在线视频观看| 国产精品久久毛片| 136国产福利精品导航| 国产精品国产自产拍高清av| 国产日韩视频一区二区三区| 日韩欧美的一区| 欧美日韩国产综合一区二区 | 久久国产剧场电影| 婷婷综合五月天| 国产一区二区女| 不卡一区二区中文字幕| 97久久人人超碰| 欧美日韩精品一二三区| 欧美一二三区精品| 久久精品日韩一区二区三区| 久久精品水蜜桃av综合天堂| 国产精品免费丝袜| 久久se这里有精品| 欧日韩精品视频| 91麻豆国产精品久久| 欧美精品xxxxbbbb| 中文字幕亚洲一区二区va在线| 亚洲一区二区三区四区在线观看 | 国产精品一区二区在线观看不卡 | 精品一区二区在线看| 成人久久久精品乱码一区二区三区| voyeur盗摄精品| 欧美成人一区二区三区片免费| 日韩女优av电影在线观看| 亚洲欧美aⅴ...| 黄色日韩网站视频| 欧美日韩午夜在线| 欧美国产一区在线| 精品一区二区三区日韩| 欧美日本高清视频在线观看| 日本一区二区不卡视频| 日韩成人免费电影| 5月丁香婷婷综合| 日韩精品免费视频人成| 欧美亚洲一区二区在线| 亚洲欧美一区二区三区国产精品| 国产福利91精品一区二区三区| 88在线观看91蜜桃国自产| 亚洲一区二区三区激情| 成人国产精品免费观看| 亚洲人成网站色在线观看| 色诱亚洲精品久久久久久| 国产精品福利av| 欧美三级视频在线观看| 日韩一区有码在线| 成a人片国产精品| 欧美激情中文字幕一区二区| 国产成人精品影视| 中文字幕一区二区不卡| 成人av网址在线观看| 中文字幕中文字幕一区| 91丝袜美腿高跟国产极品老师| 亚洲男人的天堂av| 欧美一卡在线观看| 国产成a人无v码亚洲福利| 国产精品国产三级国产普通话三级 | 国产精品亚洲综合一区在线观看| 欧美大片一区二区| 成人av动漫网站| 石原莉奈在线亚洲二区| 中文一区在线播放| 欧美区一区二区三区| 狠狠久久亚洲欧美| 午夜精品123| 中文字幕一区二区三区四区不卡 | 欧美性极品少妇| 国产精品一区二区无线| 国产精品久久久久久久久果冻传媒 | 国产精品久久网站| 精品国产一区二区亚洲人成毛片| 波多野结衣在线一区| 视频在线观看国产精品| 国产精品不卡在线| 26uuu欧美日本| 欧美精品久久久久久久久老牛影院| 国产99久久久久| 狠狠色综合播放一区二区| 亚洲综合色成人| 亚洲欧洲色图综合| 一区在线中文字幕| 国产精品色噜噜| 精品国产凹凸成av人网站| 欧美日韩情趣电影| 欧美日韩色一区| 欧美一区二区视频在线观看2020 | 69久久99精品久久久久婷婷| 在线观看成人小视频| 欧美在线视频日韩| 欧美精品丝袜中出| 777午夜精品免费视频| 日韩视频在线观看一区二区| 精品久久久久久最新网址| 国产日韩欧美精品一区| 国产精品毛片久久久久久久| 国产精品国产馆在线真实露脸 | 午夜精品免费在线| 极品销魂美女一区二区三区| 国产在线看一区| 丰满白嫩尤物一区二区| 91黄色免费看| 欧美一级夜夜爽| 精品91自产拍在线观看一区| 国产精品毛片大码女人| 日韩av午夜在线观看| 夫妻av一区二区| 欧美日韩国产天堂| 国产精品久久久久精k8| 亚洲v精品v日韩v欧美v专区| 国产一区二区日韩精品| 欧美亚洲丝袜传媒另类| 久久综合九色综合欧美就去吻| 亚洲欧美视频在线观看| 久久国产乱子精品免费女| 在线观看一区日韩| 国产精品无人区| 日日夜夜免费精品视频| 在线一区二区观看| 日韩久久一区二区| 老司机精品视频线观看86| 欧美三电影在线| 亚洲图片欧美视频| 欧美日韩色一区| 午夜私人影院久久久久| 日本高清成人免费播放| 国产精品久久久久aaaa| 国产精品一区二区三区乱码 | 555www色欧美视频| 亚洲成人免费电影| 欧美日韩一区二区三区高清 | 国产人伦精品一区二区| 国产精品综合二区| 日韩午夜电影在线观看| 日本少妇一区二区| 欧美一卡二卡在线观看| 日av在线不卡| 日韩欧美中文字幕公布| 日本成人在线一区| 国产亚洲一区二区三区四区| 激情文学综合插| 中文av字幕一区| 在线观看国产一区二区| 日本sm残虐另类| 久久色中文字幕| 99re视频精品| 蜜臀久久久99精品久久久久久| 久久综合色一综合色88| 成人av网址在线| 婷婷国产在线综合| 国产精品萝li| 欧美一级二级在线观看| 97精品久久久久中文字幕| 婷婷开心激情综合| 欧美日韩精品欧美日韩精品一| 91蜜桃免费观看视频| 一区二区三区高清| 在线综合视频播放| 色婷婷亚洲婷婷| 粉嫩av一区二区三区在线播放 | 一本一道综合狠狠老| 琪琪久久久久日韩精品| 国产精品传媒视频| 国产午夜精品久久| 欧美成人vps| 欧美在线观看你懂的| 不卡一二三区首页| 国产精品影视在线观看| 麻豆91小视频| 秋霞午夜鲁丝一区二区老狼| 亚洲电影第三页| 一区av在线播放| 一区二区三区在线观看网站| 亚洲三级免费电影| 国产精品每日更新在线播放网址| 精品国产sm最大网站| 91精品国产日韩91久久久久久| 欧美日韩一区二区电影| 欧美日韩成人高清| 日韩欧美中文字幕公布| 欧美va亚洲va| 久久久久亚洲蜜桃| 国产精品视频免费| 亚洲成人在线网站| 国产精品一二三四| 色偷偷一区二区三区| 欧美视频日韩视频|