FileDocCategorySizeDatePackage
Ch09_06.javaAPI DocExample1117Wed Nov 26 10:54:28 GMT 2003org.eclipsebook.ch09

Ch09_06.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_06 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("<BODY>");
			out.println("<H1>");
			out.println("Using Servlets");
			out.println("</H1>");
			out.println("Using a Tomcat plug-in...");
			out.println("</BODY>");
			out.println("</HTML>");
		}
}