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=13467>. 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=13467 getResource() URL doesn't know the content type [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From [EMAIL PROTECTED] 2004-01-26 23:47 ------- Having read the spec I think that this is actually a problem with the javadoc for getResourceAsStream(). The spec clearly states that (section SRV.3.5) for getResource() and getResourceAsStream() <spec-quote> These methods are not used to obtain dynamic content. For example, in a container supporting the JavaServer PagesTM specification, a method call of the form getResource("/index.jsp") would return the JSP source code and not the processed output. See Chapter SRV.8, “Dispatching Requests” for more information about accessing dynamic content. </spec-quote> Since these methods return the source, not the dynamic content, the meta-data available will be that available for the source. In this case the source file length is available but the content type is not. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]