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.)

I can specify complete URL without any problem, but I like to use relative path 
instead.   Do I need to configure Apche configuration files or jserv.properties 
files?   What is the best way to do this?

Thank you very much for any tips.

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

Reply via email to