I have scenario which I am not sure is even possible or not.
Here is what I am looking for:
I enter a URL in the browser and wait for the page to load, but it never finishes loading.
The server should return some initial content to be displayed in the browser, but it should not close the connection, and instead send something every 5 seconds or so.
For example it can keep writing something to the webpage.
I searched everywhere and was not able to find anything on this. As far as my knowledge goes in jsp or servlet once the response stream is opened all the output written to stream and the stream is closed. So using the normal jsp or servlet it does not look like its possible to achieve this.
AJAX with a request fired in every 5 sec can be a options??
I would be grateful if the community can help me and throw in their thoughts and suggestions.