Hi Rosy,
Try to use client-pull for automatic reloading in specific intervals
of time
The following sample by jason refreshes the screen by itself for
every ten seconds
Shiva
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ClientPull extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("text/plain");
PrintWriter out = res.getWriter();
res.setHeader("Refresh", "10");
out.println(new Date().toString());
}
}
-----Original Message-----
From: Roseline Arulnayagam [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 1:04 PM
To: [EMAIL PROTECTED]
Subject: reloading servlet
Hi ,
does anyone know how a servlet(HttpServlet) can be programmed to reload
every few hours or so ?
Rosy
___________________________________________________________________________
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