001    /**
002     *  Licensed to the Apache Software Foundation (ASF) under one or more
003     *  contributor license agreements.  See the NOTICE file distributed with
004     *  this work for additional information regarding copyright ownership.
005     *  The ASF licenses this file to You under the Apache License, Version 2.0
006     *  (the "License"); you may not use this file except in compliance with
007     *  the License.  You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     *  Unless required by applicable law or agreed to in writing, software
012     *  distributed under the License is distributed on an "AS IS" BASIS,
013     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     *  See the License for the specific language governing permissions and
015     *  limitations under the License.
016     */
017    package org.apache.geronimo.samples.daytrader.web.prims;
018    
019    import java.io.*;
020    import javax.servlet.*;
021    import javax.servlet.http.*;
022    
023    /**
024     *
025     * PingServlet2Include tests servlet to servlet request dispatching. Servlet 1,
026     * the controller, creates a new JavaBean object forwards the servlet request with
027     * the JavaBean added to Servlet 2. Servlet 2 obtains access to the JavaBean through
028     * the Servlet request object and provides the dynamic HTML output based on the JavaBean
029     * data.
030     * PingServlet2Servlet is the initial servlet that sends a request to {@link PingServlet2ServletRcv}
031     *
032     */
033    public class PingServlet2IncludeRcv extends HttpServlet {
034    
035            /**
036             * forwards post requests to the doGet method
037             * Creation date: (11/6/2000 10:52:39 AM)
038             * @param res javax.servlet.http.HttpServletRequest
039             * @param res2 javax.servlet.http.HttpServletResponse
040             */
041            public void doPost(HttpServletRequest req, HttpServletResponse res)
042                    throws ServletException, IOException {
043                    doGet(req, res);
044            }
045            /**
046            * this is the main method of the servlet that will service all get requests.
047            * @param request HttpServletRequest
048            * @param responce HttpServletResponce
049            **/
050            public void doGet(HttpServletRequest req, HttpServletResponse res)
051                    throws ServletException, IOException {
052                    // do nothing but get included by PingServlet2Include
053            }
054    }