1 | /* |
2 | * Servlet.java |
3 | * |
4 | * Project: EL4Ant |
5 | * |
6 | * WHEN WHO WHAT DESCRIPTION |
7 | * 23.03.05 YMA Creation |
8 | * |
9 | * EL4Ant, a Ant-based buildsystem, http://el4ant.sourceforge.net |
10 | * Copyright (C) 2005 by ELCA Informatique SA, Av. de la Harpe 22-24, |
11 | * 1000 Lausanne, Switzerland, http://www.elca.ch |
12 | * |
13 | * This program is published under the GNU General Public License (GPL) license. |
14 | * http://www.gnu.org/licenses/gpl.txt |
15 | * |
16 | * This program is distributed in the hope that it will be useful, |
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | * GNU General Public License for more details. |
20 | * |
21 | * For alternative licensing, please contact info@elca.ch |
22 | */ |
23 | package helloworld; |
24 | |
25 | import java.io.IOException; |
26 | import java.io.PrintWriter; |
27 | |
28 | import javax.servlet.ServletException; |
29 | import javax.servlet.http.HttpServlet; |
30 | import javax.servlet.http.HttpServletRequest; |
31 | import javax.servlet.http.HttpServletResponse; |
32 | |
33 | /** |
34 | * A basic Servlet. |
35 | * |
36 | * <script type="text/javascript">printFileStatus |
37 | * ("$URL: https://svn.sourceforge.net/svnroot/el4ant/trunk/helloworld/web/java/helloworld/Servlet.java $", |
38 | * "$Revision: 326 $", "$Date: 2006-03-28 10:12:02 +0200 (Tue, 28 Mar 2006) $", "$Author: yma $" |
39 | * );</script> |
40 | * |
41 | * @author Yves Martin (YMA) |
42 | * @version $Revision: 326 $ |
43 | */ |
44 | public class Servlet extends HttpServlet { |
45 | |
46 | /** |
47 | * Serial UID. |
48 | */ |
49 | private static final long serialVersionUID = 6131157241727984925L; |
50 | |
51 | /** |
52 | * Implements <code>doGet</code>. |
53 | * |
54 | * @param request a <code>HttpServletRequest</code> instance |
55 | * @param response a <code>HttpServletResponse</code> instance |
56 | * @exception IOException if an error occurs |
57 | */ |
58 | public void doGet(HttpServletRequest request, |
59 | HttpServletResponse response) |
60 | throws IOException { |
61 | PrintWriter out = response.getWriter(); |
62 | out.println("Hello World"); |
63 | } |
64 | } |