When I try to compile my servlets, I get:

Package javax.io.IOException not found in import.
and...
Package javax.servlet.ServletException not found in import.

my code:

import javax.io.IOException;
import javax.servlet.ServletException;

public class HelloServlet extends GenericServlet{
public void service(ServletRequest request, ServletResponse response)
throws ServletException, IOException{
  response.setContentType("text/html");
  PrintWriter pw = response.getWriter();
  pw.println("hello");
  pw.close();
  }
}

thanks,
andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to