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=23882>. 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=23882 JSP.getServletContext().getResourceAsStream behaves not according to Servlet-Spec Summary: JSP.getServletContext().getResourceAsStream behaves not according to Servlet-Spec Product: Tomcat 4 Version: 4.1.24 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Servlet & JSP API AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In a JSP the call to this.getServletContext().getResourceAsStream (".\SomeFileName") should return null according to the description of the servlet api: javax.servlet.ServlectContext.getResourceAsStream says "... This method returns null if no resource exists at the specified path." (Taken from the API-Doc with Tomcat 4.1.24). But it's not NULL: this.getServletContext().getResourceAsStream (".\SomeFileName") if (inputStream == null) out.println ("Is NULL"); //Never happens. It returns a valid inputstream, which blocks at the first read. Each of the following two calls make it block, too: out.println (inputStream.available() ); out.println (inputStream.getClass().getName() ); So there's no chance to find out what is returned. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]