You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Alexander <th...@gmail.com> on 2009/11/12 17:13:28 UTC

Re: property name constructed from string and the value of another property

Its possible. Read about #evaluate macro

2009/11/12 dirk ooms <di...@onesparrow.com>

> Dear List,
>
> i had hoped it would be possible to write something like:
>
> ${foo${anotherProperty}}
>
> to obtain the value of the property foobar in case the value of
> anotherProperty is 'bar'.
>
> but this syntax is not allowed. are there ways to construct the name of
> a property from the value of another property?
>
> cheers,
> dirk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>


-- 
Regards,
Alexander