tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: how to ask length of collection in JSTL tags
Date Tue, 15 Jul 2003 14:58:54 GMT

My recommendation is to use the Xephyrus Collections taglib for this. I
don't think JSTL can solve it until JSTL 1.1.

http://www.xephyrus.com/

Hen

On Tue, 15 Jul 2003, Dmitri Ilyin wrote:

> Hi,
>
> how can i get the length(size) of the collection??
> I have a collection in page scope and i'd like to check the length of this
> collection.
> I use <c:if test="${collection.length == 1}">
>             that's it
>          </c:if>
> "collection.length" returns always 0. the same with "collection.size" and
> "collection.itemCount"
>
> HELP!!
>
> thanks a lot
>
> regards
>
> Dmitri
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message