Not sure if your aware but there is a servlet specific list -in the
interim try changing your import to the following:
import javax.servlet.*;
or if you want to be very specific you may create imports like the
following:
import javax.servlet.http.HttpServlet;
----- Original Message -----
From: drew w <[EMAIL PROTECTED]>
Date: Tuesday, April 24, 2001 2:43 pm
Subject: package not found in import
> 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
>
===========================================================================
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