Servlet服务结束,servlet会调用()方法释放资源
在J2EE中,有如下代码在Servlet1.Java中
Import javax.servlet.*;
Import javax.servlet.http.*
Import java.io.IOException;
Import java.io.PrintWriter;
Public class Servlet1 extends HttpServlet{
Public void init () throw ServletException {}
Public void service(HttpServletRequest request,
HttpServletResponce response) throws ServletException,IOException{
PrintWriter out=response.getWriter();
Out.println(“hello!”); } }
假如编译Servlet要具备的环境都已经建立好。现在用完全正确的命令编译该文件,对于以下成熟正确的是()
免费的网站请分享给朋友吧