doTrace(req, res);
return;
}
// if we are in include, with req==original request
// - just use the current sub-request
Request subReq=req;
if(req.getChild()!=null)
subReq=req.getChild();
Context ctx=subReq.getContext();
// Use "javax.servlet.include.servlet_path" for path if defined.
// ErrorHandler places the path here when invoking an error page.
String pathInfo = (String)subReq.getAttribute("javax.servlet.include.servlet_path");
if(pathInfo == null) {
// If the attribute isn't there, then we aren't included.
// In that case, we must use the real request.
//*** DEBUG *** subReq = req;
pathInfo=subReq.servletPath().toString();
}
String absPath = (String)subReq.getNote( realFileNote );
if( absPath==null )
absPath=FileUtil.safePath( context.getAbsolutePath(),
pathInfo);
if( debug>0) log( "Requested file = " + absPath);