做的一个简单JSP页面,,jdk+resin,这是源代码,
import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class helloservlet extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException { response.setContentType("text/html"); PrintWriter out=response.getWriter(); out.println("<html>"); out.println("<head><title>hello world</title></head>"); out.println("<body bgcolor=\"#cc99dd\">"); out.println("<h1>hello world</h1>"); out.println("</body></html>"); } }
单独编译的时候提示说 package javax.servlet does not exist
在IE中运行的时候,不但对有结果,而且连队源泉代码都出来了,有高手知道的话就指点小弟一下,,感谢,非常感谢