aboutsummaryrefslogtreecommitdiffstats
path: root/sample/evolve/WebPage.java
blob: 7d420fef8cccc1b11d054944dcb3e9dc039558f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package sample.evolve;

import java.io.*;
import java.util.*;

/**
 * Updatable class.  DemoServer instantiates this class and calls
 * show() on the created object.
 */

public class WebPage {
    public void show(OutputStreamWriter out) throws IOException {
	Calendar c = new GregorianCalendar();
	out.write(c.getTime().toString());
	out.write("<P><A HREF=\"demo.html\">Return to the home page.</A>");
    }
}