1 Reply Latest reply: Dec 19, 2012 12:53 AM by Kayaman RSS

    jsp - servlet - long-running app continous outputstream

    655260
      hello.

      I have a long-running app that uses htmlunit to simulate users of my website, as a test during development.

      I am running this simulation from a jsp-servlet. I want the app to run for a long time, possibly for hours.

      During each loop of the test I want to output a status message onto the webpage.

      I am uncertain about which type of outputstream I should use.

      -----

      Please suggest the code I should use for this outputstream.

      -----

      Will a continuous outputstream keep the browser from timing out?

      -----

      Any suggestions are greatly appreciated.

      Thank you.
        • 1. Re: jsp - servlet - long-running app continous outputstream
          Kayaman
          user652257 wrote:
          I am uncertain about which type of outputstream I should use.
          It doesn't matter.
          Please suggest the code I should use for this outputstream.
          There's nothing special about this. You know how to write to an Outputstream, don't you?
          Will a continuous outputstream keep the browser from timing out?
          Yes, at least it should.


          Although I think your real problem is that you're running htmlunit from a "jsp-servlet". What made you come up with that requirement?