b'coz v generally use
PrintWriter out = res.getWriter();
just see the code below u won't need to
import java.io.*; and
throws IOException
import javax.servlet.*;
import javax.servlet.http.*;
public class piyu extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws
ServletException
{
System.out.println(" piyu without IO ");
}
}
and if server is communicating with somthing then server developer will take care
about that.
regds
piyu
Lee Elenbaas wrote:
> Servlets communicate with the web server by using streams, and streams
> require java.io.*
> lee
> [EMAIL PROTECTED]
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Pattabiraman_Meenakshisundaram
> Sent: Monday, April 24, 2000 1:28 PM
> To: [EMAIL PROTECTED]
> Subject: off topic
> Importance: High
>
> Hi,
> I have a basic doubt and is outside the scope of JSP.
> Could any one tell me the reason for a servlet throwing IOException. I am
> forced to include java.io package just for the sake of this exception.
>
> Thank you.
>
> Regards,
> pattabi
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> 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".
> 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".
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