FileDocCategorySizeDatePackage
HelloWorldServlet.javaAPI DocExample476Thu Apr 03 15:28:50 BST 1997None

HelloWorldServlet

public class HelloWorldServlet extends GenericServlet

Fields Summary
static String
helloString
Constructors Summary
Methods Summary
public voidservice(ServletRequest request, ServletResponse response)


        

    response.setContentLength(helloString.length());
    response.setContentType("text/plain");
    try {
      PrintStream rs = new PrintStream(response.getOutputStream());
      rs.print(helloString);
    }
    catch (IOException e) {
    }