velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: Referencing a property which contains "." in its name
Date Wed, 09 Mar 2011 17:31:13 GMT
On 9 March 2011 17:16, Nathan Bubna <> wrote:
> You will have to put the context into itself and do $context.get('abcd.defg')

OK, thanks, I wondered about using the context.

However I cannot add the context to the context, because the context
is created somewhere deep in Maven.

It would be really useful though as a debugging aid.

Would there be any point in enhancing the Velocity engine to
optionally self-add the context if e.g. a specific system property was
Or perhaps via a properties file (not so useful with Maven, but
perhaps safer for other usages)?

> On Wed, Mar 9, 2011 at 9:03 AM, sebb <> wrote:
>> If the context contains a property with the name abcd it can be
>> referenced as $abcd.
>> I've checked the documentation, but cannot work out how to reference a
>> property with the name abcd.defg.
>> Is this possible? If so, how?
>> Using Velocity 1.5 (Maven site 2.2)
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message