>
> The browser will understand that your servlet will supply that gif too. Give
> them the full path/url to that gif.
I know it works when I use <IMG SRC="http://www.mydomain.com/thepath/myfile.gif"
...>, but I wonder if I can use relative path name which is what I prefer.
>
> -----Original Message-----
> From: Willa Zhu <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> <[EMAIL PROTECTED]>
> Date: Friday, May 28, 1999 3:05 AM
> Subject: how to refer to a gif file using relative path
>
>
>
> When I use servlet dynamically generate a HTML, I specify a relative path
> for
> loading image. e.g. <IMG SRC="images/myfile.gif" ...> However, when
> running
> it always uses DocumentRoot as its base path. (Therefore, the images can't
> be
> found.)
>
>
>
>
> -- --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> READ THE FAQ!!!! <http://java.apache.org/faq/>
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
>
-----------------------------------------------------------------
Willa Zhu Phone: 206-526-6208
NOAA/PMEL/OCRD FAX: 206-526-6744
7600 Sand Point Way NE Email: [EMAIL PROTECTED]
Seattle, WA 98115 WWW: http://pmel.noaa.gov/
-----------------------------------------------------------------
-- --------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]