package testreloading; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Title: Test Document Reloading in IE and Mozilla * Description: * * Mozilla does not seem to control document reloading at all. IE has some quirks. * This project will be used to examine the behaviour of both browsers. * Document Reloading should be controlled by the document modification time. * If the document is newer than the client's most recent copy, then a new copy should be issued. * Otherwise, the server will issue a "not modified" status message and the client should display * the current copy that it has in the cache. * * Copyright: Copyright (c) 2001 * Company: ASC * @author Kevin Rogers * @version 1.0 */ public class TestServlet extends HttpServlet { Date servletStarted = new Date(); void blah(PrintWriter out) { for (int i = 0; i < 5; i++) out.println("
Do GET was last run at " + new Date()); out.println("
Page last modified at " + servletStarted.toString()); out.println("