Compilation issue
I'm having trouble compiling the following simple servlet:
publicclass Testingextends HttpServlet
{
publicvoid doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
PrintWriter out;
String title ="Simple Servlet Output";
response.setContentType("text/html");
out.response.getWriter();
out.println("<HTML><HEAD><TITLE>");
out.println(title);
out.println("</TITLE></HEAD><BODY>");
out.println("<H1>" + title +"</H1>");
out.println("<P>This is output from SimpleServlet.");
out.println("</BODY></HTML>");
out.close();
}
}
I get the error:
Testing.java:2: cannot resolve symbol
symbol : class HttpServlet
location: class Testing
public class Testing extends HttpServlet
My classpath is:
Class Path - C:\tomcat\jakarta-tomcat-3.2.1\lib;C:\j2sdkee1.2.1\lib;C:\j2sdkee1.2.1\lib\j2ee.jar;C:\jsdk2.1;C:\jsdk2.1\servlet.jar;C:\jsdk2.1\server.jar;.;C:\Packages;c:\Kawa4.01\kawaclasses.zip;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar
What could be the problem?

