FileDocCategorySizeDatePackage
ServletInPlaceClass.javaAPI DocExample867Tue Mar 16 11:58:34 GMT 2004org.cookbook.ch11

ServletInPlaceClass

public class ServletInPlaceClass extends HttpServlet

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

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

        out.println("<HTML>");
        out.println("<HEAD>");
        out.println("<TITLE>");
        out.println("A New Servlet");
        out.println("</TITLE>");
        out.println("</HEAD>");
        out.println("<BODY>");
        out.println("<H1>");
        out.println("A New Servlet");
        out.println("</H1>");
        out.println("Editing servlets in place");
        out.println("</BODY>");
        out.println("</HTML>");