on 9/22/2000 5:19 PM, "Daniel L. Rall" <[EMAIL PROTECTED]> wrote:
> Jon Stevens wrote:
>>
>> 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.
>
> Wouldn't you still have to set the "document root" somewhere?
Of course...it is easily defined in a properties file somewhere that the
$getRoot Context object is able to lookup...
-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]