jfarcand    2002/12/17 12:05:07

  Modified:    catalina/src/share/org/apache/catalina Globals.java
  Log:
  Servlet 2.4 Specification addition
  ----------------------------------
  SRV.8.4.2 Forwarded Request Parameters
  
    Except for servlets obtained by using the getNamedDispatcher method, a
    servlet being used from a servlet that has been invoked by another
    servlet using the forward method of RequestDispatcher.
  
    The following request attributes must be set:
    - javax.servlet.forward.request_uri
    - javax.servlet.forward.context_path
    - javax.servlet.forward.servlet_path
    - javax.servlet.forward.path_info
    - javax.servlet.forward.query_string
  
  Revision  Changes    Path
  1.3       +50 -10    
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java
  
  Index: Globals.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Globals.java      21 Sep 2002 06:47:22 -0000      1.2
  +++ Globals.java      17 Dec 2002 20:05:07 -0000      1.3
  @@ -126,9 +126,17 @@
        * The request attribute under which the original context path is stored
        * on an included dispatcher request.
        */
  -    public static final String CONTEXT_PATH_ATTR =
  +    public static final String INCLUDE_CONTEXT_PATH_ATTR =
           "javax.servlet.include.context_path";
   
  +    
  +    /**
  +     * The request attribute under which the original context path is stored
  +     * on an forwarded dispatcher request.
  +     */
  +    public static final String FORWARD_CONTEXT_PATH_ATTR =
  +        "javax.servlet.forward.context_path";
  +
   
       /**
        * The request attribute under which we forward a Java exception
  @@ -216,27 +224,51 @@
        * The request attribute under which the original path info is stored
        * on an included dispatcher request.
        */
  -    public static final String PATH_INFO_ATTR =
  +    public static final String INCLUDE_PATH_INFO_ATTR =
           "javax.servlet.include.path_info";
  +    
  +    
  +    /**
  +     * The request attribute under which the original path info is stored
  +     * on an forwarded dispatcher request.
  +     */
  +    public static final String FORWARD_PATH_INFO_ATTR =
  +        "javax.servlet.forward.path_info";
   
   
       /**
        * The request attribute under which the original query string is stored
        * on an included dispatcher request.
        */
  -    public static final String QUERY_STRING_ATTR =
  +    public static final String INCLUDE_QUERY_STRING_ATTR =
           "javax.servlet.include.query_string";
   
  -
  +    
  +    /**
  +     * The request attribute under which the original query string is stored
  +     * on an forwarded dispatcher request.
  +     */
  +    public static final String FORWARD_QUERY_STRING_ATTR =
  +        "javax.servlet.forward.query_string";
  +    
  +    
       /**
        * The request attribute under which the original request URI is stored
        * on an included dispatcher request.
        */
  -    public static final String REQUEST_URI_ATTR =
  +    public static final String INCLUDE_REQUEST_URI_ATTR =
           "javax.servlet.include.request_uri";
   
   
       /**
  +     * The request attribute under which the original request URI is stored
  +     * on an forwarded dispatcher request.
  +     */
  +    public static final String FORWARD_REQUEST_URI_ATTR =
  +        "javax.servlet.forward.request_uri";
  +    
  +    
  +    /**
        * The request attribute under which we forward a servlet name to
        * an error page.
        */
  @@ -248,10 +280,18 @@
        * The request attribute under which the original servlet path is stored
        * on an included dispatcher request.
        */
  -    public static final String SERVLET_PATH_ATTR =
  +    public static final String INCLUDE_SERVLET_PATH_ATTR =
           "javax.servlet.include.servlet_path";
   
   
  +    /**
  +     * The request attribute under which the original servlet path is stored
  +     * on an forwarded dispatcher request.
  +     */
  +    public static final String FORWARD_SERVLET_PATH_ATTR =
  +        "javax.servlet.forward.servlet_path";
  +
  +    
       /**
        * The name of the cookie used to pass the session identifier back
        * and forth with the client.
  
  
  

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

Reply via email to