I think the easiest way to do this is as follows:
res.setHeader("Refresh","30");
Where res is the HttpServletResponse, "Refresh" is the header value,
and 30 is the number of seconds between each "push".
Your welcome,
Jaman
______________________________ Reply Separator _________________________________
Subject: How to ?? Server Push with Servlets ...
Author: ramamrun ([EMAIL PROTECTED]) at wich-unix-mime
Date: 4/17/99 2:41 PM
Hi:
I would like to write a servlet that will lat some definded time periods
refreash the clients that are connected (i.e., like a server push). For Eg.
Lets say I have a stocks page taht has the current stock market. Any client tha
t
is viewing this page would like to get refreshed every say 1 min. How would I d
o
this with servlets ?
Thank
- Nanu.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html