Hello,

I have a large template with many placeholders. According to some rules, the 
application populates several of these attributes to the context and leave some 
unspecified. I would like that the unspecified ones ( i.e. 
velocityContext.get("placeholderA") == null ) become empty Strings "" ... I 
researched the Velocity API but could not find any provision for this use-case 
something like callback if unspecified.

Can anyone point me to the way to achieve this with Velocity?

TIA,
Best regards,
Giovanni

==============================================================================
Please access the attached hyperlink for an important electronic communications 
disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
============================================================================== 

Reply via email to