tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteAdapter.java
Date Mon, 19 May 2003 22:44:21 GMT
remm        2003/05/19 15:44:20

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteAdapter.java
  Log:
  - Correctly handle redirects sent by the mapper.
  
  Revision  Changes    Path
  1.7       +11 -6     jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java
  
  Index: CoyoteAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CoyoteAdapter.java	16 May 2003 04:22:01 -0000	1.6
  +++ CoyoteAdapter.java	19 May 2003 22:44:20 -0000	1.7
  @@ -195,8 +195,13 @@
               // Parse and set Catalina and configuration specific 
               // request parameters
               postParseRequest(req, request, res, response);
  -            // Calling the container
  -            connector.getContainer().invoke(request, response);
  +            if (!request.getMappingData().redirectPath.isNull()) {
  +                response.sendRedirect
  +                    (request.getMappingData().redirectPath.toString());
  +            } else {
  +                // Calling the container
  +                connector.getContainer().invoke(request, response);
  +            }
               response.finishResponse();
   
               req.action( ActionCode.ACTION_POST_REQUEST , null);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message