commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: [Jelly] Escaping variables
Date Tue, 05 Jan 2010 05:29:36 GMT
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.


Mime
View raw message