velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Mielnik <tomasz.miel...@tdcinternet.pl>
Subject Re: context and images
Date Mon, 05 Aug 2002 15:25:56 GMT
Barbara Baughman wrote:

>Your relative path should be relative to the file from which you are
>calling the image.  For example, if the template is
>...webapps/templates/welcome.vm, and the image is in
>...webapps/images/logo.png, then the code would be:
><img src="../images/logo.png">
>
>This has nothing to do with Velocity.  It's the way HTML works.
>  
>
yes  that's true, but what if i change my context path to "/" i must 
then replace ../ from all images tags to /. right?
so question is how to make template images context safe.

Tomasz Mielnik / TDCInternet Polska


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


Mime
View raw message