property name constructed from string and the value of another property

View: New views
2 Messages — Rating Filter:   Alert me  

property name constructed from string and the value of another property

by Dirk Ooms :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...


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

by Alexander-129 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Its possible. Read about #evaluate macro

2009/11/12 dirk ooms <dirk@...>

> 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@...
> For additional commands, e-mail: user-help@...
>
>


--
Regards,
Alexander