Thanks David.  Do you really think I'm not using struts :-) ?

Dave




From: "Karr, David" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: [OT] Getting a Collection's size in JSTL
Date: Wed, 30 Oct 2002 11:18:48 -0500

> -----Original Message-----
> From: David Graham [mailto:dgraham1980@;hotmail.com]
> Sent: Wednesday, October 30, 2002 8:14 AM
>
> Sorry for the OT post but the java forum was unresponsive.
> How do you get
> the size of a collection class in the JSTL EL?
>
> You can do it with jsp expressions like:
> <%= collection.size() %>
>
> but I want to do something like
>
> <c:if test="${collection.size > 0}">
>
> I've tried every variation on that syntax that I could think of.

That's because you can't do it. I know, I went through the exact same
discovery process.

If you're using Struts, you can just use "bean:size".

--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to