> From: David R. Patterson [mailto:[EMAIL PROTECTED] > Subject: Image File redirection with Tomcat5.5 > > Now, I'd like to include graphics (jpegs, for example), and when I > build <img> elements that have links to the real location of the > graphic (with file:///c:/wherever/my.jpg) they work in IE and fail in > Firefox.
This is a bug (feature?) in Firefox - if you use four leading slashes, the file: reference should work. However, this begs the question: why are you generating local file system references for such images? Then can only work when the browser is running on the same system as the server. You webapp should be generating links that Tomcat can process; if you want to keep these separate from the app, treat the images as a separate, static-content only webapp deployed under Tomcat. Put an <imageAppName>.xml file in conf/Catalina/[host] containing a <Context> element with a docBase attribute pointing to the absolute path of the image directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]