Cover V06, I08
Article
Listing 1
Listing 2
Listing 3
Listing 4

aug97.tar


Listing 4: HelloWorldServlet.java

// servlet for displaying Hello World

import netscape.server.applet.HttpApplet;
import java.io.PrintStream;

class HelloWorldServlet extends Servlet {

protected void printBody() {
outputStream.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
outputStream.println("<BODY><H1>Hello World!</H1></BODY>");
}
}

// End of File