DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9430>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9430 getResource() doesn't return null for invalid URLs Summary: getResource() doesn't return null for invalid URLs Product: Tomcat 3 Version: 3.2.3 Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Servlet AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, >From the Servlet 2.2 javax.servlet.ServletContext javadocs, method: public java.net.URL getResource(java.lang.String path): "This method returns null if no resource is mapped to the pathname." Yet it clearly doesn't, as this JSP demonstrates: <%= config.getServletContext().getResource("/some/nonexistent/path") %> This bug is fixed in 3.3.1rc1 and 4.0.1 (at least), but I thought I'd just record this bug for future generations. --Jeff -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>