Hi,

I have a lot of problem using the method PrintWriter.checkError when I use
the connector Coyote. Can'you help me ?

My servlet can be long (extraction), and if the user close the window, I
want to stop my servlet.

  public class IndicateursDemandeSrvl extends HttpServlet
  {
    public void doPost(HttpServletRequest Request, HttpServletResponse
Response)
    throws IOException, ServletException
    {
       PrintWriter out=Response.getWriter();
       Vector ListeDemande= .....
       for (int i=0;i<ListeDemande.size();i++)
       {
        if (out.checkError()) {return;}
        out.println(......);
       }
       out.close();
     }
  }
I call this servlet with JavaScript :
open("http://xxx/IndicateursDemandeSrvl","nom";,....);

The first call works good. If I interrupt by closing window, the statement
stop also (it is ok), but after, when I call my servlet, sometimes,
checkError return true and the statement stop, and I havn'nt the attempt
result.

If I use the standard HttpConnector, I haven't this problem. (I use tomcat
4.1.12, but it is the same with 4.0.x).

I hope my explication is clear. Have you an idea ? Thanks


Elisabeth
Toulouse


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to