Hello Duke,
You can write a javascript in the html you generate from your servlet -
The javascript has a timer which on timeout refreshes the page - ie. Nothing but sends 
the same request to the servlet again.

<SCRIPT>
                var aTimer;
                function aReload() {
                        location.reload(true);
                }
                function startReload() {
                         aTimer = setTimeout('aReload()', 10000);
                }
                function stopReload() {
                        clearTimeout(aTimer);
                 }
</SCRIPT>

This is the script for refresh.
This should work.

Jyoti


-----Original Message-----
From:   Duke Martin [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, September 08, 1999 12:38 AM
To:     [EMAIL PROTECTED]
Subject:        auto refreshing with servlets

how can I periodically refresh a page generated by a servlet?  I just need
to do a "auto refresh".

Duke

___________________________________________________________________________
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

Reply via email to