I have a JSP which tries to load an image which is 
referenced by a URI which is set in the request by a servlet.

<img src="<%= request.getAttribute("imageURL") %>" 
     alt="IMAGE NOT FOUND">

Unfortunately this has never worked because Tomcat can never 
find the image.  Perhaps I am using a bad URI ?  I have the
image located under my application's base directory in a
subdirectory
named "images".  The URIs I've tried are "images/MyImage.jpg",
"./images/MyImage.jpg" and
"/images/MyImage.jpg", all of which are not found when I 
view the page.

Can anyone please tell me what I'm doing wrong ?  Thanks in
advance for all suggestions, and email of the responses would be
appreciated if possible ([EMAIL PROTECTED]).


-James

Reply via email to