Comparing null...

2005-03-30 Thread Majji, Sashibhushan
Hi All, Can we compare null condition in velocity # if ($type != null) #end Thanks Sashi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Comparing null...

2005-03-30 Thread Chacko, Raj
Try #if($null.isNotNull($type)) #if($null.isNull($type)) -Raj -Original Message- From: Majji, Sashibhushan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 10:57 AM To: velocity-user@jakarta.apache.org Subject: Comparing null... Hi All, Can we compare null condition in

Re: Comparing null...

2005-03-30 Thread Shinobu Kawai
Hi Sashi, Can we compare null condition in velocity # if ($type != null) #end Check out here for more... http://wiki.apache.org/jakarta-velocity/VelocityFAQ Best regards, -- Shinobu -- Shinobu Kawai [EMAIL PROTECTED]

Re: Comparing null...

2005-03-30 Thread tarun Narang
hi shashi try this too #if(!$type) ...statements #end - Original Message - From: Shinobu Kawai [EMAIL PROTECTED] To: Velocity Users List velocity-user@jakarta.apache.org Sent: Wednesday, March 30, 2005 10:29 PM Subject: Re: Comparing null... Hi Sashi, Can we compare null

Re: Comparing null...

2005-03-30 Thread Barbara Baughman
Problem is, this also returns true if $type is a Boolean with value false. I usually don't distinguish between the two and would use this to check for nulls. If $type could be null or a Boolean, you'll want to use something fancier than the suggestion below to distinguish between the two.

Trying to download veltags

2005-03-30 Thread Ryan McHale
Hi, I was trying to get the velocity tag libraries to work.. but the first thing the ant script tries to do is download jjar, which fails... Where can I find jjar? Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Trying to download veltags

2005-03-30 Thread Shinobu Kawai
Hi Ryan, I was trying to get the velocity tag libraries to work.. but the first thing the ant script tries to do is download jjar, which fails... Where can I find jjar? You can find it here: http://jakarta.apache.org/commons/sandbox/jjar/ I'm sure you're reading here:

Re: Trying to download veltags

2005-03-30 Thread Shinobu Kawai
Hi Ryan, Let's keep it on the list. I might be missing something... But the first thing that happens when you run ant is that it tries to use jjar? If you read here (Build Using JJAR): http://jakarta.apache.org/velocity/veltag.html#JJAR%20build it tells you to first obtain jjar by ant

Re: Trying to download veltags

2005-03-30 Thread Ryan McHale
Hi, That was simple enough.. Thanks. Ryan On Wed, 30 Mar 2005 13:59:10 -0800, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Ryan, Let's keep it on the list. I might be missing something... But the first thing that happens when you run ant is that it tries to use jjar? If you read

issue rendering text enclosed in {}

2005-03-30 Thread Ricardo Olivieri
Hi, I am using velocity 1.4.I am having problems when rendering text that is enclosed within {}. Here's my velocity template: Hello $name! Welcome to Velocity! $c1{name} $c2{phone} Here's the output I get: Hello John! Welcome to Velocity! $c1{ $c2{ $name is a velocity reference. $c1 and $c2 are