title: JSP Programming - response.getWriter().flush(); doesn't work
body: <pre><code>&lt;%
  response.getWriter().write("Hello world&lt;BR&gt;\n");
  response.getWriter().flush();
  wait(10000); // 10 seconds
  response.getWriter().write("Goodbye happiness.&lt;BR&gt;\n");
  %&gt;
  </code></pre>
  
  <p>Expected results: "Hello World" is displayed in the browser. 10 seconds later, "Goodbye happiness." is displayed.</p>
  
  <p>What happens: The page sits there loading for 10 seconds, and then "Hello World Goodbye Happiness" are displayed at the end.</p>
  
  <p>What I want to do is display the status of a long-running operation as different milestones are reached. Is this possible?</p>
  
  <p>I'm using Eclipse EE (with Tomcat) on Windows 7.</p>