Hi,

Can you please try out the following code on your container and see if you still get 
this error.

If this code does not raise any exceptions, can you please tell us which sendRedirect 
in your code raises the exception. (you did not attach the full source code, so the 
line nos. in the stack trace are not valid)

Regds,
Gokul

====== 8< =========== 8< ===============
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.PrintWriter;


public class siteListing extends HttpServlet
{
 public void doGet(HttpServletRequest req,HttpServletResponse res)
 throws ServletException,IOException
 {
  res.setContentType("text/html");
  PrintWriter out=res.getWriter();
  try
  {
   res.sendRedirect("testServlet");
   return;
  }
  finally
  {
   out.close();
  }
 }
}
====== 8< =========== 8< ===============

On Thu, 26 Jul 2001 21:04:59 -0700, krishna <[EMAIL PROTECTED]> wrote:


>Hi All
>
>   Every time i execute the servlet the following exception is being written to error 
>logs.  Code listing for the same is given below.  Could any one suggest if any 
>changes are to be done to the servlet.
>
>Thanks in advance
>KR
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to