作者在 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(){
}
}