net.trajano.webutil
Class HelloWorldServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
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 |
HelloWorldServlet
public HelloWorldServlet()
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 objectresponse
- the HTTP response object
- Throws:
IOException
- thrown when there is a problem getting the writer
Copyright © 2004-2005 trajano.net. All Rights Reserved.