You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oliver Heger <ol...@oliver-heger.de> on 2010/01/04 22:35:18 UTC
[Jelly] Escaping variables
Hi,
I could not find the answer to the following question:
Jelly tags per default evaluate variables which appear in their body as
in the example shown in the overview page:
<document time="${now}">
Welcome ${user.name} to Jelly!
</document>
How can I quote or escape the variable so that actually the text
"${user.name}" is passed to the tag? With other words: I want to prevent
that the variable is replaced.
Thanks
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [Jelly] Escaping variables
Posted by Oliver Heger <ol...@oliver-heger.de>.
Am 05.01.2010 06:29, schrieb Paul Libbrecht:
> Oliver,
>
> an answer for you on:
> http://commons.apache.org/jelly/faq.html #escapingJexl
> the answer says to use double dollar signs.
> paul
Many thanks, Paul! This works pretty well now!
Oliver
>
>
> Le 04-janv.-10 à 22:35, Oliver Heger a écrit :
>
>> Hi,
>>
>> I could not find the answer to the following question:
>>
>> Jelly tags per default evaluate variables which appear in their body
>> as in the example shown in the overview page:
>>
>> <document time="${now}">
>> Welcome ${user.name} to Jelly!
>> </document>
>>
>> How can I quote or escape the variable so that actually the text
>> "${user.name}" is passed to the tag? With other words: I want to
>> prevent that the variable is replaced.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: [Jelly] Escaping variables
Posted by Paul Libbrecht <pa...@activemath.org>.
Oliver,
an answer for you on:
http://commons.apache.org/jelly/faq.html #escapingJexl
the answer says to use double dollar signs.
paul
Le 04-janv.-10 à 22:35, Oliver Heger a écrit :
> Hi,
>
> I could not find the answer to the following question:
>
> Jelly tags per default evaluate variables which appear in their body
> as in the example shown in the overview page:
>
> <document time="${now}">
> Welcome ${user.name} to Jelly!
> </document>
>
> How can I quote or escape the variable so that actually the text "$
> {user.name}" is passed to the tag? With other words: I want to
> prevent that the variable is replaced.