velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matjaž Trtnik <>
Subject Returning empy string isead of $
Date Fri, 25 Aug 2006 14:27:28 GMT

Can anyone suggest me how I can solve my problem whish ic as following:

Say I have template


I add Book bean to velocity context

context.put("book", new Book()).

Now if title is null return XML will be:


but I would prefer (empty string):


Is it possible to do this somewhere in properties or with some kind of 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message