NT, Apache 1.3.6, JServ 1.0

Servlet does the following in doGet, but flush has no effect.  Browser
times out at 120 seconds;  I was hoping that flushing "please wait"
output every 15 seconds would solve the timeout, but flush doesn't
work.  Browser doesn't get any output until doGet terminates (and only
when doGet terminates in less than 120 seconds).

// Return "please wait" message periodically until login is complete.
while(!lengthProcessingDone) {
    PrintWriter out  = response.getWriter();
    out.println("Please wait....");
   out.flush();
   Thread.sleep(15000);      // with try and catch
}




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to