tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4477] - absolute path names of images and server-side includes
Date Sun, 28 Oct 2001 20:21:18 GMT
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=4477>.
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=4477

absolute path names of images and server-side includes





------- Additional Comments From pspeed@progeeks.com  2001-10-28 12:21 -------
I'm not a committer (I don't even play one on TV... sorry old joke)...

This isn't a bug.

<!--#include virtual="/infonetIniFiles/header.ini" -->

Is interpretted by the server, where as img tags...

&lt;img src="/images/choice.gif"... &gt;
...are interpretted by the browser.  A configuration flag lets the SSI #include 
work relative to the webapp, but this essentially means that the SSI servlet 
sticks the context path on the front before reading the file.

For IMG tags, the browser asks for /images/choice.gif.  The server has no way of 
knowing that the browser really wants /ANT/images/choice.gif.  Indeed, the 
servlet engine never really comes into play here since choice.gif is a static 
resource.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message