on 9/22/2000 3:54 PM, "Diethelm Guallar, Gonzalo"
<[EMAIL PROTECTED]> wrote:

> Is there a way of doing something like
> 
> <img src="$getRoot("images/bar.jpg")">
> 
> and have that expanded to
> 
> <img src="/myapp/servlet/myapp/images/bar.jpg">
> 
> so that, if I later move the application to a different
> location, the templates will not have to be changed?

Right...that is exactly how you would do it. So do it.

DLR, your rewrite rule idea doesn't apply in this case.

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to