/*
 * JBoss, the OpenSource J2EE webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.jboss.test.deployment;

// $Id: SampleServlet.java,v 1.1.2.1 2005/04/08 18:56:57 tdiesler Exp $

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * A sample servlet
 *
 * @author Thomas.Diesler@jboss.org
 * @since 05-Apr-2005
 */
public class SampleServlet extends HttpServlet
{
   protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
   {
      PrintWriter out = res.getWriter();
      out.print("Hello World!");
      out.close();
   }
}
