FileDocCategorySizeDatePackage
Ch02_04.javaAPI DocExample975Mon Oct 20 12:29:26 BST 2003org.eclipsebook.ch02

Ch02_04.java

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

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 Ch02_04 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 Web Page");
		out.println("</TITLE>");
		out.println("</HEAD>");
		out.println("Hello there!");
		out.println("</BODY>");
		out.println("</HTML>");
	}
}