You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by David You <Da...@hds.com> on 2002/10/21 20:45:54 UTC

Set size?

Hi, I have a Set, which showes cnntent in foreach loop,
but it doesn't work when I tried to get the size by 
#if ($abcSet.size > 0)

Any Ideas? I am using 1.3

thanks
David

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Set size?

Posted by Jonathan Revusky <re...@wanadoo.es>.
On Monday 21 October 2002 08:45 pm, David You wrote:
> Hi, I have a Set, which showes cnntent in foreach loop,
> but it doesn't work when I tried to get the size by
> #if ($abcSet.size > 0)

I think you have to write:

#if ($abcSet.size() >0) 

>
> Any Ideas? I am using 1.3
>
> thanks
> David


Jonathan Revusky
--
FreeMarker 2.1 is out! http://freemarker.sourceforge.net/
FreeMarker-Velocity comparison doc
http://freemarker.sourceforge.net/fmVsVel.html
Velocity->FreeMarker template conversion utility
http://freemarker.sourceforge.net/usCavalry.html


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>