FileDocCategorySizeDatePackage
ServletClass.javaAPI DocExample753Mon Mar 15 13:33:22 GMT 2004org.cookbook.ch11

ServletClass

public class ServletClass 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("Servlet Sample");
		out.println("</TITLE>");
		out.println("</HEAD>");
		out.println("<BODY>");
		out.println("<H1>");
		out.println("Servlet Sample");
		out.println("</H1>");
		out.println("This servlet is functional.");
		out.println("</BODY>");
		out.println("</HTML>");