Hi Charlie,

> Quick question.  Is there any way to change some setting in
> velocity.properties
> that will make it so that "silent" notation is the default?
> 
> By default, "$myVar" always shows up on the page when the value is
> null.  Which
> is usually fine.  But, sometimes, I want it to not appear.  The same as
> "$!myVar".
> 
> Any way to have this set system wide?

Check out EventCartridges and ReferenceInsertionEventHandler.
   
http://jakarta.apache.org/velocity/developer-guide.html#EventCartridge%20and%20Event%20Handlers
You should be able to configure all null to be inserted as blank.  ;)

Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to