You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WebPage.java 429B

1234567891011121314151617
  1. package sample.evolve;
  2. import java.io.*;
  3. import java.util.*;
  4. /**
  5. * Updatable class. DemoServer instantiates this class and calls
  6. * show() on the created object.
  7. */
  8. public class WebPage {
  9. public void show(OutputStreamWriter out) throws IOException {
  10. Calendar c = new GregorianCalendar();
  11. out.write(c.getTime().toString());
  12. out.write("<P><A HREF=\"demo.html\">Return to the home page.</A>");
  13. }
  14. }