tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin, Zhongwu" <Zhongwu_...@AFCC.com>
Subject RE: Question about context paths and IMG URL's
Date Fri, 28 Jun 2002 19:09:07 GMT
It should be 
      <img src="images/foo.gif">
J
-----Original Message-----
From: Chris Bailey [mailto:chris@codeintensity.com]
Sent: Friday, June 28, 2002 12:22 PM
To: Tomcat Mailing List
Subject: Question about context paths and IMG URL's


I seem to have confused myself about the proper way to specify an image
location in HTML that my servlet spits out.  If I have an "images" directory
at the "root" of my webapp, is it safe to always do this:

   <img src="/images/foo.gif">

Or, how does the context "path" attribute play into this?  We always set our
path to "" (our app is the only one running in the container).  But, I'm
wondering about this if we wish to make it a bit more generic so that we
could just give a customer a WAR file and let them set it up in their
container as they wish.

____
Chris Bailey       mailto:chris@codeintensity.com
Code Intensity       http://www.codeintensity.com


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message