FileDocCategorySizeDatePackage
Ch09_03.javaAPI DocExample1112Tue Nov 25 13:43:54 GMT 2003org.eclipsebook.ch09

Ch09_03.java

/*
 * Created on Nov 24, 2003
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package org.eclipsebook.ch09;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 * @author Steven Holzner
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class Ch09_03 extends HttpServlet {
	public void doGet(HttpServletRequest request,
		HttpServletResponse response)
		throws IOException, ServletException
	{
		response.setContentType("text/html");
		PrintWriter out = response.getWriter();

		out.println("<HTML>");
		out.println("<HEAD>");
		out.println("<TITLE>");
		out.println("A Servlet Example");
		out.println("</TITLE>");
		out.println("</HEAD>");
		out.println("<BODY>");
		out.println("<H1>");
		out.println("Working With Servlets");
		out.println("</H1>");
		out.println("Developing servlets in place");
		out.println("</BODY>");
		out.println("</HTML>");
	}
}