我的JDK怎么不能编译servlet呀?
下的是js2dk1.4.2,还有tomcat5.0高手告诉我怎么办呀? import java.io.*; import javax.servlet.*; import javax.servlet.http.*; Public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException {
response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html><head><title>"); out.println("This is my first Servlet"); out.println("</title></head><body>"); out.println("<h1>Hello,World!</h1>"); out.println("</body></html>"); } } 以上是源码!