The browser will understand that your servlet will supply that gif too. Give
them the full path/url to that gif.

Steve Nguyen
KBMail Software & Service Provider
http://www.kbmail.com/ISP/index.html

-----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]

Reply via email to