View | Details | Raw Unified | Return to bug 34465
Collapse All | Expand All

(-)jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspCServletContext.java (-1 / +7 lines)
Lines 235-241 Link Here
235
        if (!path.startsWith("/"))
235
        if (!path.startsWith("/"))
236
            throw new MalformedURLException("Path '" + path +
236
            throw new MalformedURLException("Path '" + path +
237
                                            "' does not start with '/'");
237
                                            "' does not start with '/'");
238
        return (new URL(myResourceBaseURL, path.substring(1)));
238
        URL url = new URL(myResourceBaseURL, path.substring(1));
239
        if ("file".equals(url.getProtocol())) {
240
            if (!(new File(url.getFile())).exists()) {
241
                return null;
242
            }
243
        }
244
        return url;
239
245
240
    }
246
    }
241
247

Return to bug 34465