• Post Reply Bookmark Topic Watch Topic
  • New Topic

Partial Loading of page in JSP  RSS feed

 
tinu Jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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.

Thank You.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax is your best option.
 
tinu Jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

Appreciate it.

Ankur
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!