David,

I'm differentiating between a link as in src= and a hyperlink as in href=.
For a link, the browser does indeed do another HTTP GET to retrieve it, but
if the result is a 404, the rest of the response is discarded and the image
is rendered as a small box with a red x in it.

On the other hand, if the image was the target of a hyperlink and it got a
404, the error page would be displayed (unless the IE "friendly" option were
selected). Example: http://peacham.homeip.net/notthere.jpg.

Fritz

-----Original Message-----
From: David Wall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 18, 2005 2:11 PM
To: Tomcat Users List
Subject: Re: 404 redirection question

Fritz,

Well, that's a hyperlink to the image, not embedded.  In the case below, 
the image is not embedded in the HTML but is simply a link to the image 
that requires an HTTP(S) GET to retrieve.  With a relative URL like you 
used, it just constructs the complete URL by appending the current 
page's URL to the front, so "images/xxx.jpg" becomes something like 
"http(s)://www.host.com/app/images/xxx.jpg" assuming the HTML is located 
at http(s)://www.host.com/app.

David


Fritz Schneider wrote:

>By having a page that is essentially:
><html><head/><body>
>  <img src="images/xxx.jpg"/>
></body></html>
>
>
>
>Fritz Schneider wrote:
>  
>
>>If you have hyperlinks
>>to images, as opposed to HTML pages with images embedded,
>>
>>    
>>
>How would you embed images inside the HTML rather than using hyperlinks 
>to the image?
>
>David
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to