----------------------------- Please read the FAQ! <http://java.apache.org/faq/> ----------------------------- Hi, I am using Apache 1.3.9 with JServ 1.0 and JSDK 2.0 on Win32 (i386NT4SP5) running JDK 1.1.7. I have attached a sample servlet demonstrating the problem, see below. What I would like to happen and what the servlet specification defines is that the response headers are sent to the client as soon as getOutputStream()/getWriter() is called and subsequent data is also sent immediately (when flushed). However, what happens is that I receive no data at all at the client end until the servlet execution has completed. I have verified that this is not a proxy or browser problem by directly telnetting to the HTTP server port. I am confused as I would assume that such a fairly basic thing is working correctly indicating that I am doing something wrong, however I have no idea what could be wrong with my configuration or the servlet code. Any help greatly appreciated. Andreas Sterbenz mailto:[EMAIL PROTECTED] import java.io.*; import javax.servlet.*; public class TestServlet extends GenericServlet { public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException { resp.setContentType("text/plain"); PrintWriter out = resp.getWriter(); out.flush(); try { Thread.sleep(3000); } catch( InterruptedException e ) {}; out.println("foo"); out.flush(); try { Thread.sleep(3000); } catch( InterruptedException e ) {}; out.println("bar"); out.flush(); try { Thread.sleep(3000); } catch( InterruptedException e ) {}; } } -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]