You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Smith, Tim" <Ti...@qwest.com> on 2004/06/25 21:24:28 UTC

Question

If a Velocity Template references an object that was never put in the
context, is there a property that can be set to prevent the non parsed
string from displaying in the rendered output?
 
for example, if a template contains:
 
$Customer.FirstName
 
but the Customer object was never placed into the context, the rendered
output will display the string "as is" above.  Is there some way to tell
Velocity to exclude any VTL references that are not valid from the
output?
 
Thanks,
 
Timothy Smith
Qwest, IT
303.992.9062 office