Use Velocity 1.5 beta.  It supports all number types.  Velocity 1.4
just supports integers.

WILL

On 12/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,

I have a value of the type Long in an object passed to vm template, is
there any way to compare it to an integer in the template,
eg.
 #if ($myLong == 1)
do something
#end

I tried the above but got "Error in evaluation of != expression. Both
arguments must be of the same Class" error. I'm trying not to change
anything in the original .java class so the only option is to compare it
within the velocity template.

Any help would be appreciated. Thank you!

Erica






--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

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

Reply via email to