Thanks, it defined like this
<bean:size name="list" id="itemsSize" scope="page"/>
its working.
-----Original Message-----
From: Jean-Noel Ribette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: Re: getting size of a collection
----- Original Message -----
From: Sundaram Ramasamy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 3:14 PM
Subject: getting size of a collection
> Hi
>
> I have collection like this.
> <% java.util.ArrayList list = new java.util.ArrayList();
> list.add("First");
> list.add("Second");
> list.add("Third");
> list.add("Fourth");
> list.add("Fifth");
> pageContext.setAttribute("list", list, PageContext.PAGE_SCOPE);
> %>
>
>
> Before processing this collection, I want to compare the collection item
> grater than 1. how will I do this.
>
> Can I use like this.
>
> <bean:size name="list" property="size" id="itemsSize" scope="session"/>
Yes you can, but you don't have to put " property="size'' ". The tag knows
how to get the size of an Array, a
Collection and a Map.
Jean-Noel