jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/RequestDispatcher ForwardTestServlet.java
Date Wed, 24 Jul 2002 18:22:45 GMT
morgand     2002/07/24 11:22:45

  Modified:    latka-scratch/src/distribution/tests servlet-tests.web.xml
               src/server/servlet-tests/WEB-INF web.xml
               src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/RequestDispatcher
                        ForwardTestServlet.java
  Log:
  moved ForwardTestServlet target from hardcoded value to servlet init param
  
  Revision  Changes    Path
  1.3       +6 -2      jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/servlet-tests.web.xml
  
  Index: servlet-tests.web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/latka-scratch/src/distribution/tests/servlet-tests.web.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- servlet-tests.web.xml	24 Jul 2002 17:53:23 -0000	1.2
  +++ servlet-tests.web.xml	24 Jul 2002 18:22:44 -0000	1.3
  @@ -846,9 +846,13 @@
       <display-name>ForwardTest</display-name>
       
       <servlet-class>tests.javax_servlet.RequestDispatcher.ForwardTestServlet</servlet-class>
  +
  +    <init-param>
  +      <param-name>forwardTarget</param-name>
  +      <param-value>/tests/javax_servlet/RequestDispatcher/ForwardedServlet</param-value>
  +    </init-param>
       
  -    <load-on-startup>0</load-on-startup>
  -    
  +    <load-on-startup>0</load-on-startup>    
     
     </servlet>
     
  
  
  
  1.12      +4 -0      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/web.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- web.xml	1 Feb 2002 01:14:53 -0000	1.11
  +++ web.xml	24 Jul 2002 18:22:45 -0000	1.12
  @@ -408,6 +408,10 @@
       <servlet-name>ForwardTest</servlet-name>
       <display-name>ForwardTest</display-name>
       <servlet-class>tests.javax_servlet.RequestDispatcher.ForwardTestServlet</servlet-class>
  +    <init-param>
  +      <param-name>forwardTarget</param-name>
  +      <param-value>/ForwardedServlet</param-value>
  +    </init-param>
       <load-on-startup>0</load-on-startup>
     </servlet>
     <servlet>
  
  
  
  1.3       +1 -1      jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/RequestDispatcher/ForwardTestServlet.java
  
  Index: ForwardTestServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/server/servlet-tests/WEB-INF/classes/tests/javax_servlet/RequestDispatcher/ForwardTestServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ForwardTestServlet.java	11 Jan 2002 22:20:54 -0000	1.2
  +++ ForwardTestServlet.java	24 Jul 2002 18:22:45 -0000	1.3
  @@ -77,7 +77,7 @@
   
       public void service( ServletRequest request, ServletResponse response )
       throws ServletException, IOException {
  -        String path = "/ForwardedServlet";
  +        String path = getServletConfig().getInitParameter("forwardTarget");
           RequestDispatcher rd = getServletContext().getRequestDispatcher( path );
           rd.forward( request, response );
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message