---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- I am currently using Apache 1.3.12 and ApacheJserv1.1.2. I am trying to make use of pushlet to dynamically update my status window. The code goes like this (derived from ): /* */ public class push extends ServletBase { public void service (HttpServletRequest req, HttpServletResponse resp) throws ServletException ,java.io.IOException { String jsPre = "<script language=JavaScript >parent.push('"; String jsPost = "')</script>"; String pageStart="<HTML><HEAD></HEAD><BODY BGCOLOR=blue TEXT=white><H2>Server pushes: <P>"; String pageEnd = "</H2></BODY></HTML>"; int i = 1; java.io.PrintWriter out = new java.io.PrintWriter(resp.getOutputStream()); resp.setContentType("text/html"); out.println("<html>"); out.println("<head>"); out.println("<title> Dynamic Update Example</title>"); out.println("</head>"); out.println("<body>"); out.println(pageStart); try { while (true) { out.println(jsPre+"<BR>PAGE : " + i +jsPost); out.flush(); log(String.valueOf(i)); i++; if (i > 1000) break; try { Thread.sleep(3000); } catch (InterruptedException e) { } } } catch (Exception e) { out.println(jsPre+"Exception: " + e+jsPost); } out.println("</body>"); out.println(pageEnd); out.println("</html>"); out.close(); return; } } /**/ the above servlet executes in hidden frame and displays "i" in main visible frame thru java script. What happens is, I see the output going in log file at interval of 3 sec, but the updation thru Javascript does not takes place until i reaches 100. (which destroys the puspose of dynamic updation) By snoop , I can see that no data is passed from apache to the user agent (browser) till i becomes 100. Is there any parameter within Jserv .conf or httpd.conf which can be set to prevent buffering or do I need to recompile with any specific options? Any help is highly appreciated. TIA. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Search Archives: <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/> Problems?: [EMAIL PROTECTED]