FileDocCategorySizeDatePackage
HelloClient.javaAPI DocExample627Mon May 01 14:41:50 BST 2000None

HelloClient

public class HelloClient extends HttpServlet

Fields Summary
Constructors Summary
Methods Summary
public voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)


        // must come first
        response.setContentType("text/html");
        PrintWriter out = response.getWriter(  );

        out.println(
            "<html><head><title>Hello Client</title></head><body>"
            + "<h1> Hello Client </h1>"
            + "</body></html>" );
        out.close(  );