Re: A servlet that must generate a new page to a browser at any time without browser request for it
Posted By:
pradeep_kanwar
Posted On:
Friday, April 19, 2002 03:57 PM
what you need is ask the client to call you after three seconds ( isn't that too little a time to call a refresh !!!! ) so you should not be bothering the server side code for it.
javascript provides a settimeout("dostuffhere like calling your page url", repeatseconds); method which is cool when refreshing data
or
you can use the meta refresh mentioned earllier in the page.
personally i like settimeout() because i face suspicious :| problems with meta refresh
look for 'refresh' on jguru forums and u might have see your answer already answered :)