vmassol     02/01/10 11:59:19

  Modified:    src/sample/share/org/apache/cactus/sample SampleServlet.java
  Log:
  Added new test case to test includes
  
  Revision  Changes    Path
  1.7       +19 -1     
jakarta-cactus/src/sample/share/org/apache/cactus/sample/SampleServlet.java
  
  Index: SampleServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/src/sample/share/org/apache/cactus/sample/SampleServlet.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SampleServlet.java        14 Sep 2001 20:23:20 -0000      1.6
  +++ SampleServlet.java        10 Jan 2002 19:59:19 -0000      1.7
  @@ -66,7 +66,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
    *
  - * @version $Id: SampleServlet.java,v 1.6 2001/09/14 20:23:20 pier Exp $
  + * @version $Id: SampleServlet.java,v 1.7 2002/01/10 19:59:19 vmassol Exp $
    */
   public class SampleServlet extends HttpServlet
   {
  @@ -217,6 +217,24 @@
           RequestDispatcher rd = theConfig.getServletContext().
               getRequestDispatcher("/test/test.jsp");
           rd.forward(theRequest, theResponse);
  +    }
  +
  +    /**
  +     * Use a <code>RequestDispatcher</code> to include a JSP page. This is
  +     * to verify that Cactus supports asserting the result, even in the case
  +     * of including another page.
  +     *
  +     * @param theRequest the HTTP request
  +     * @param theResponse the HTTP response
  +     * @param theConfig the servlet config object
  +     */
  +    public void doInclude(HttpServletRequest theRequest,
  +        HttpServletResponse theResponse, ServletConfig theConfig)
  +        throws IOException, ServletException
  +    {
  +        RequestDispatcher rd = theConfig.getServletContext().
  +            getRequestDispatcher("/test/test.jsp");
  +        rd.include(theRequest, theResponse);
       }
   
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to