FileDocCategorySizeDatePackage
HelloServlet.javaAPI DocExample672Thu Apr 06 16:32:00 BST 2000None

HelloServlet

public class HelloServlet extends HttpServlet
Simple Hello World Servlet
author
Ian Darwin
version
$Id: HelloServlet.java,v 1.2 2000/04/06 19:32:00 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

		PrintWriter out = response.getWriter();
		response.setContentType("text/html");
		out.println("<H1>Hello from a Servlet</H1>");
		out.println("<P>This servlet ran at ");
		out.println(new Date().toString());
		out.println("<P>Courtesy of $Id: HelloServlet.java,v 1.2 2000/04/06 19:32:00 ian Exp $");