tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <j...@wendysmoak.com>
Subject Re: Trouble displaying images
Date Tue, 10 Aug 2004 21:47:20 GMT
From: "Xeth Waxman" <xethw@yahoo.com>
> body.append("<A HREF='<link here>'><IMG BORDER=0
>
SRC='C:/jakarta-tomcat-5.0.12/webapps/ROOT/WEB-INF/Images/logo.gif'></A>");

The Servlet Specification requires your container to restrict access to
anything under WEB-INF.  Since images are requested by the browser
separately after it receives the page, even if you managed to get the
"right" URL in your <img> tag, the container will refuse to serve the image.

I suggest putting it in ...ROOT/images/logo.gif, then try your <img> tag
again without the full path.

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message