velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bayarsaikhan VOLODYA <>
Subject Null Value?
Date Fri, 15 Jul 2005 14:28:46 GMT
Hi all.

my .vm file is here;

#foreach( $user in $users )
<b>Middle Name:</b> $<br> 

it outputs the something like this. 

Middle Name: MyMiddleName
Middle Name: $
Middle Name: test Name

since the second <> object has no value. null 
how to set velocity not to output $ i want it just 
output nothing if property is null.

thanks a lot.

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