FileDocCategorySizeDatePackage
ServletExample.javaAPI DocExample986Mon Mar 29 16:25:48 BST 2004org.cookbook.ch04

ServletExample

public class ServletExample extends HttpServlet
author
Steven Holzner To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

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("Using Servlets");
		out.println("</TITLE>");
		out.println("</HEAD>");
		out.println("Using Servlets");
		out.println("</BODY>");
		out.println("</HTML>");