org.apache.geronimo.samples.daytrader.web.prims
Class PingServlet2Servlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.geronimo.samples.daytrader.web.prims.PingServlet2Servlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PingServlet2Servlet
extends javax.servlet.http.HttpServlet

PingServlet2Servlet tests servlet to servlet request dispatching. Servlet 1, the controller, creates a new JavaBean object forwards the servlet request with the JavaBean added to Servlet 2. Servlet 2 obtains access to the JavaBean through the Servlet request object and provides the dynamic HTML output based on the JavaBean data. PingServlet2Servlet is the initial servlet that sends a request to PingServlet2ServletRcv

See Also:
Serialized Form

Constructor Summary
PingServlet2Servlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          this is the main method of the servlet that will service all get requests.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          forwards post requests to the doGet method Creation date: (11/6/2000 10:52:39 AM)
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, 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

PingServlet2Servlet

public PingServlet2Servlet()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
forwards post requests to the doGet method Creation date: (11/6/2000 10:52:39 AM)

Parameters:
res - javax.servlet.http.HttpServletRequest
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
this is the main method of the servlet that will service all get requests.

Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.