[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Re: context and images
From:       Tomasz Mielnik <tomasz.mielnik () tdcinternet ! pl>
Date:       2002-08-05 15:25:56
[Download RAW message or body]

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>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic