net.trajano.webutil
Class HelloWorldServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.trajano.webutil.HelloWorldServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HelloWorldServlet
extends HttpServlet

This is a sample servlet, typically you would not use this, but it is useful for testing the sanity of your web application configuration.

Version:
$Id: HelloWorldServlet.java,v 1.1 2005/03/04 22:13:29 trajano Exp $
Author:
Archimedes Trajano
See Also:
Serialized Form

Constructor Summary
HelloWorldServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          This prints out the standard "Hello world" message with a date stamp.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorldServlet

public HelloWorldServlet()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws IOException
This prints out the standard "Hello world" message with a date stamp.

Overrides:
doGet in class HttpServlet
Parameters:
request - the HTTP request object
response - the HTTP response object
Throws:
IOException - thrown when there is a problem getting the writer


Copyright © 2004-2005 trajano.net. All Rights Reserved.