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

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

?? genericservlet.java

?? 圖書管理系統(tǒng),用JSP實現(xiàn),圖書的查詢,添加等功能
?? JAVA
字號:
/*
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999 The Apache Software Foundation.  All rights 
 * reserved.
 *
 * 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 acknowlegement:  
 *       "This product includes software developed by the 
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowlegement may appear in the software itself,
 *    if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
 *    Foundation" must not be used to endorse or promote products derived
 *    from this software without prior written permission. For written 
 *    permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache"
 *    nor may "Apache" appear in their names without prior written
 *    permission of the Apache Group.
 *
 * 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 THE APACHE SOFTWARE FOUNDATION 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 the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 *
 * ====================================================================
 *
 * This source code implements specifications defined by the Java
 * Community Process. In order to remain compliant with the specification
 * DO NOT add / change / or delete method signatures!
 */ 

package javax.servlet;

import java.io.IOException;
import java.util.Enumeration;

/**
 *
 * Defines a generic, protocol-independent
 * servlet. To write an HTTP servlet for use on the
 * Web, extend {@link javax.servlet.http.HttpServlet} instead.
 *
 * <p><code>GenericServlet</code> implements the <code>Servlet</code>
 * and <code>ServletConfig</code> interfaces. <code>GenericServlet</code>
 * may be directly extended by a servlet, although it's more common to extend
 * a protocol-specific subclass such as <code>HttpServlet</code>.
 *
 * <p><code>GenericServlet</code> makes writing servlets
 * easier. It provides simple versions of the lifecycle methods 
 * <code>init</code> and <code>destroy</code> and of the methods 
 * in the <code>ServletConfig</code> interface. <code>GenericServlet</code>
 * also implements the <code>log</code> method, declared in the
 * <code>ServletContext</code> interface. 
 *
 * <p>To write a generic servlet, you need only
 * override the abstract <code>service</code> method. 
 *
 *
 * @author 	Various
 * @version 	$Version$
 *
 *
 *
 */

 
public abstract class GenericServlet 
    implements Servlet, ServletConfig, java.io.Serializable
{

    private transient ServletConfig config;
    

    /**
     *
     * Does nothing. All of the servlet initialization
     * is done by one of the <code>init</code> methods.
     *
     */

    public GenericServlet() { }
    
    
    
   /**
     * Called by the servlet container to indicate to a servlet that the
     * servlet is being taken out of service.  See {@link Servlet#destroy}.
     *
     * 
     */

    public void destroy() {
	log("destroy");
    }
    
    
    
    /**
     * Returns a <code>String</code> containing the value of the named
     * initialization parameter, or <code>null</code> if the parameter does
     * not exist.  See {@link ServletConfig#getInitParameter}.
     *
     * <p>This method is supplied for convenience. It gets the 
     * value of the named parameter from the servlet's 
     * <code>ServletConfig</code> object.
     *
     * @param name 		a <code>String</code> specifying the name 
     *				of the initialization parameter
     *
     * @return String 		a <code>String</code> containing the value
     *				of the initalization parameter
     *
     */ 

    public String getInitParameter(String name) {
	return getServletConfig().getInitParameter(name);
    }
    
    

   /**
    * Returns the names of the servlet's initialization parameters 
    * as an <code>Enumeration</code> of <code>String</code> objects,
    * or an empty <code>Enumeration</code> if the servlet has no
    * initialization parameters.  See {@link
    * ServletConfig#getInitParameterNames}.
    *
    * <p>This method is supplied for convenience. It gets the 
    * parameter names from the servlet's <code>ServletConfig</code> object. 
    *
    *
    * @return Enumeration 	an enumeration of <code>String</code>
    *				objects containing the names of 
    *				the servlet's initialization parameters
    *
    */

    public Enumeration getInitParameterNames() {
	return getServletConfig().getInitParameterNames();
    }   
    
     
 
     

    /**
     * Returns this servlet's {@link ServletConfig} object.
     *
     * @return ServletConfig 	the <code>ServletConfig</code> object
     *				that initialized this servlet
     *
     */
    
    public ServletConfig getServletConfig() {
	return config;
    }
    
    
 
    
    /**
     * Returns a reference to the {@link ServletContext} in which this servlet
     * is running.  See {@link ServletConfig#getServletContext}.
     *
     * <p>This method is supplied for convenience. It gets the 
     * context from the servlet's <code>ServletConfig</code> object.
     *
     *
     * @return ServletContext 	the <code>ServletContext</code> object
     *				passed to this servlet by the <code>init</code>
     *				method
     *
     */

    public ServletContext getServletContext() {
	return getServletConfig().getServletContext();
    }



 

    /**
     * Returns information about the servlet, such as 
     * author, version, and copyright. 
     * By default, this method returns an empty string.  Override this method
     * to have it return a meaningful value.  See {@link
     * Servlet#getServletInfo}.
     *
     *
     * @return String 		information about this servlet, by default an
     * 				empty string
     *
     */
    
    public String getServletInfo() {
	return "";
    }




    /**
     *
     * Called by the servlet container to indicate to a servlet that the
     * servlet is being placed into service.  See {@link Servlet#init}.
     *
     * <p>This implementation stores the {@link ServletConfig}
     * object it receives from the servlet container for alter use.
     * When overriding this form of the method, call 
     * <code>super.init(config)</code>.
     *
     * @param config 			the <code>ServletConfig</code> object
     *					that contains configutation
     *					information for this servlet
     *
     * @exception ServletException 	if an exception occurs that
     *					interrupts the servlet's normal
     *					operation
     *
     * 
     * @see 				UnavailableException
     *
     */

    public void init(ServletConfig config) throws ServletException {
	this.config = config;
	log("init");
	this.init();
    }





    /**
     *
     * A convenience method which can be overridden so that there's no need
     * to call <code>super.init(config)</code>.
     *
     * <p>Instead of overriding {@link #init(ServletConfig)}, simply override
     * this method and it will be called by
     * <code>GenericServlet.init(ServletConfig config)</code>.
     * The <code>ServletConfig</code> object can still be retrieved via {@link
     * #getServletConfig}. 
     *
     * @exception ServletException 	if an exception occurs that
     *					interrupts the servlet's
     *					normal operation
     *
     */
    
    public void init() throws ServletException {

    }
    



    /**
     * 
     * Writes the specified message to a servlet log file, prepended by the
     * servlet's name.  See {@link ServletContext#log(String)}.
     *
     * @param msg 	a <code>String</code> specifying
     *			the message to be written to the log file
     *
     */
     
    public void log(String msg) {
	getServletContext().log(getServletName() + ": "+ msg);
    }
   
   
   
   
    /**
     * Writes an explanatory message and a stack trace
     * for a given <code>Throwable</code> exception
     * to the servlet log file, prepended by the servlet's name.
     * See {@link ServletContext#log(String, Throwable)}.
     *
     *
     * @param message 		a <code>String</code> that describes
     *				the error or exception
     *
     * @param t			the <code>java.lang.Throwable</code> error
     * 				or exception
     *
     *
     */
   
    public void log(String message, Throwable t) {
	getServletContext().log(getServletName() + ": " + message, t);
    }
    
    
    
    /**
     * Called by the servlet container to allow the servlet to respond to
     * a request.  See {@link Servlet#service}.
     * 
     * <p>This method is declared abstract so subclasses, such as 
     * <code>HttpServlet</code>, must override it.
     *
     *
     *
     * @param req 	the <code>ServletRequest</code> object
     *			that contains the client's request
     *
     * @param res 	the <code>ServletResponse</code> object
     *			that will contain the servlet's response
     *
     * @exception ServletException 	if an exception occurs that
     *					interferes with the servlet's
     *					normal operation occurred
     *
     * @exception IOException 		if an input or output
     *					exception occurs
     *
     */

    public abstract void service(ServletRequest req, ServletResponse res)
	throws ServletException, IOException;
    


    /**
     * Returns the name of this servlet instance.
     * See {@link ServletConfig#getServletName}.
     *
     * @return          the name of this servlet instance
     *
     *
     *
     */

    public String getServletName() {
        return config.getServletName();
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区电影| 国产自产2019最新不卡| 日本中文字幕一区| 成人97人人超碰人人99| 欧美一区二区三区四区视频| 国产欧美综合色| 日韩高清不卡一区二区三区| 国产精品一区2区| 欧美日韩成人综合| 日韩一区中文字幕| 国产一区二区h| 在线不卡a资源高清| 亚洲色图制服丝袜| 国产成人午夜精品5599| 欧美电视剧免费观看| 亚洲国产另类av| 91亚洲国产成人精品一区二区三 | 在线观看一区不卡| 国产无一区二区| 捆绑变态av一区二区三区| 欧美熟乱第一页| 亚洲精品久久久久久国产精华液| 成人av在线播放网址| 国产亚洲欧美中文| 韩国女主播一区二区三区| 制服丝袜亚洲网站| 午夜精品视频一区| 欧美色图12p| 亚洲一区二区三区激情| 在线免费观看视频一区| 一区精品在线播放| 99久久免费精品高清特色大片| 亚洲国产精品黑人久久久| 成熟亚洲日本毛茸茸凸凹| 久久久久久久一区| 国产盗摄视频一区二区三区| 久久精品一二三| 国产成人久久精品77777最新版本| 日韩一级视频免费观看在线| 九九九久久久精品| 久久精品视频在线免费观看| 国产成人精品免费看| 国产精品视频看| 成人成人成人在线视频| 亚洲美女免费视频| 欧美日韩性生活| 男人的天堂亚洲一区| 久久综合久久综合九色| 国产一区欧美二区| 亚洲欧美偷拍三级| 欧美日韩五月天| 蜜臀av一区二区三区| 国产视频一区在线观看| 91一区在线观看| 亚洲五月六月丁香激情| 欧美一区二区国产| 国产激情视频一区二区在线观看| 国产精品国产成人国产三级| 日本韩国视频一区二区| 看片网站欧美日韩| 一区在线观看免费| 91精品国产色综合久久| 国产91精品欧美| 一区二区三区在线影院| 精品国产乱码久久久久久免费| 丁香婷婷综合网| 亚洲高清免费观看| 久久久久久久久久久久久久久99| 99亚偷拍自图区亚洲| 日本午夜精品视频在线观看| 国产欧美日本一区二区三区| 欧美日韩一区视频| 国产成人av电影在线| 亚洲一二三区在线观看| 国产午夜精品一区二区 | 国产a视频精品免费观看| 99视频有精品| 日日摸夜夜添夜夜添精品视频| 久久久久亚洲蜜桃| 91久久精品一区二区三区| 精品一区中文字幕| 亚洲国产日产av| 国产丝袜美腿一区二区三区| 欧美一区二区视频观看视频| av在线免费不卡| 精品在线一区二区三区| 午夜精品福利在线| 亚洲精品国产无套在线观| 久久一区二区三区四区| 欧美日韩久久久久久| 一本大道久久精品懂色aⅴ| 国产精品91xxx| 久久国产剧场电影| 日韩国产精品91| 一区二区在线观看免费视频播放 | 亚洲人成7777| 国产日韩精品一区二区三区| 日韩美一区二区三区| 制服丝袜成人动漫| 欧美探花视频资源| 欧美视频在线一区| 欧美三级视频在线观看| 色悠悠久久综合| 99久久国产综合精品女不卡| 成人在线综合网| 国产91色综合久久免费分享| 国产福利一区在线观看| 国产在线视频精品一区| 国产尤物一区二区| 国产精品一级片| 国产成人免费视频一区| 成人免费视频一区| 波多野结衣精品在线| 成人av综合在线| 不卡的av中国片| 99国产精品久久久久| 色哟哟国产精品免费观看| 欧美在线观看视频在线| 91国偷自产一区二区开放时间 | 欧美一区二区三区播放老司机| 欧美性videosxxxxx| 欧美另类z0zxhd电影| 欧美乱妇20p| 欧美成人乱码一区二区三区| 久久男人中文字幕资源站| 国产亚洲成年网址在线观看| 日本一区二区三区dvd视频在线| 久久精品一区二区三区av| 国产精品欧美一区喷水| 亚洲婷婷国产精品电影人久久| 亚洲精品国产一区二区三区四区在线 | 亚洲欧美中日韩| 一区二区三区中文在线| 日韩精品欧美成人高清一区二区| 免费成人av资源网| 国产老肥熟一区二区三区| 风间由美一区二区av101| 91久久人澡人人添人人爽欧美| 欧美人成免费网站| 精品精品欲导航| 日本一区二区三区高清不卡| 亚洲黄一区二区三区| 免费高清在线一区| 成人爽a毛片一区二区免费| 欧美调教femdomvk| 精品久久久久久亚洲综合网| 自拍偷自拍亚洲精品播放| 香蕉影视欧美成人| 成人激情小说网站| 欧美午夜免费电影| 精品国产91洋老外米糕| 日韩毛片在线免费观看| 另类的小说在线视频另类成人小视频在线 | 91视频www| 日韩欧美视频一区| 亚洲欧美一区二区三区久本道91| 日韩电影在线免费| 91视频.com| 久久嫩草精品久久久精品一| 亚洲国产精品一区二区久久 | 日韩中文字幕不卡| 成人性生交大片免费看视频在线| 欧美亚男人的天堂| 中文字幕免费一区| 六月丁香婷婷久久| 中文字幕日韩精品一区| 三级在线观看一区二区| 成人aaaa免费全部观看| 精品久久国产老人久久综合| 亚洲一区在线观看视频| 成人激情av网| 欧美不卡视频一区| 香蕉乱码成人久久天堂爱免费| eeuss鲁片一区二区三区| wwwwxxxxx欧美| 天天色综合成人网| 在线视频一区二区免费| 国产精品久久久久久久久久免费看 | 亚洲女同ⅹxx女同tv| 国产寡妇亲子伦一区二区| 56国语精品自产拍在线观看| 亚洲精品国产a| 国产精品久久看| 91日韩精品一区| 亚洲国产aⅴ成人精品无吗| 从欧美一区二区三区| 欧美sm极限捆绑bd| 五月天欧美精品| 在线国产亚洲欧美| 亚洲人成伊人成综合网小说| 国产a精品视频| 久久精品日产第一区二区三区高清版| 天天操天天色综合| 欧美另类高清zo欧美| 亚洲成人你懂的| 欧美卡1卡2卡| 午夜在线电影亚洲一区| 欧美日韩激情一区二区三区| 亚洲精品乱码久久久久久黑人| 色婷婷久久一区二区三区麻豆|