larryi 01/03/13 14:03:22
Modified: src/share/org/apache/tomcat/request Tag: tomcat_32
StaticInterceptor.java
Log:
Update to use javax.servlet.include.servlet_path instead of
javax.servlet.include.request_uri. ctx.getRealPath() doesn't need the
context path.
Revision Changes Path
No revision
No revision
1.7.2.8 +2 -2
jakarta-tomcat/src/share/org/apache/tomcat/request/Attic/StaticInterceptor.java
Index: StaticInterceptor.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/request/Attic/StaticInterceptor.java,v
retrieving revision 1.7.2.7
retrieving revision 1.7.2.8
diff -u -r1.7.2.7 -r1.7.2.8
--- StaticInterceptor.java 2001/03/12 21:50:16 1.7.2.7
+++ StaticInterceptor.java 2001/03/13 22:03:19 1.7.2.8
@@ -332,8 +332,8 @@
subReq=req.getChild();
Context ctx=subReq.getContext();
- // If this file is being included, use javax.servlet.include.request_uri.
- String pathInfo =
(String)subReq.getAttribute("javax.servlet.include.request_uri");
+ // If this file is being included, use javax.servlet.include.servlet_path.
+ String pathInfo =
(String)subReq.getAttribute("javax.servlet.include.servlet_path");
if(pathInfo == null)
pathInfo=subReq.getServletPath();
String absPath = (String)subReq.getNote( realFileNote );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]