Servlet

作者在 2011-09-08 15:02:17 发布以下内容
import    javax.servlet.http.*;
 class   LoginServlet  extends  HttpServlet{
     public  void  init(){
          System.out.println("instance  of the   initalize");
    }
    public  void   service(ServletConfig    servletConfig)throws ServletException{
              public   void   doGet(HttpServevletResquest  request ,HttpServletResponse  response)throws   IOException,servletException{
                    printWriter  out  =   response.getWriter();
                    out.println();
                    out.flush();
                    out.println("welcome  to  Servlet  world");
                    out.println("welcome  to   www.hnguotong.com ");
                    out.println(this.getServletName());
                    out.println(this.getServletPort());
         };
    }
   public   void  destory(){
   
    }
}
java | 阅读 1132 次
文章评论,共0条
游客请输入验证码
浏览59267次
最新评论