velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: values not in Context
Date Tue, 20 Feb 2001 17:05:44 GMT
David Esposito wrote:
> 
> Is there a way to have Velocity just print out nothing ("") for values that
> it can't find in the Context when parsing the page? Right now, it prints out
> the VTL expression $whatever if "whatever" is not in the hashtable.
> 
> Thanks in advance.

Use the 'quiet reference' notation :

$!whatever 

in your case.


-- 
Geir Magnusson Jr.                               geirm@optonline.com

Developing for the web?  See http://jakarta.apache.org/velocity

Mime
View raw message