I have seen a nice article on this topec (unrelated to servlets) on
Netscape site almost two years ago.
One approach is "client pull" -- your first approach.
The second is "server push". You set your context type
to "mixed" plus "replace" (don't know exact syntax).
The "replace" thing means that the new thing will replace old
stuff. I remember a CGI example of animation which pushed
consecutive images. At that time, it was an experimental
MIME type and did not work with my browser.
Anyway, search Netscape site for details.
I hope this is a good lead
DD
----------
From: Ramesh A. Babu[SMTP:[EMAIL PROTECTED]]
Sent: Thursday, September 30, 1999 03:23 PM
To: [EMAIL PROTECTED]
Subject: Servlet Refreshing
I have a servlet which draws HTML page from doGet().
I want to refresh/redraw my servlet outside of doGet()/doPost().
(I have a thread in my servlet which check the variable is set to
true or not. If true I want to redraw/refresh my screen.
But I don't know how to do ?)
So I tried this way,
response.setHeader("REFRESH", 10)
in my servlet doGet().
which refresh the servlet screen every 10 minutes and it is working fine.
(here no thread )
But i don't like this, instead i want my servlet screen automatically refreshed
whenever the variable set to true (in thread)
so how to refresh the page only one time whenever I need ?
Tnanx in advance
___________________________________________________________________________
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