Use $[empty pojo.property] or $[not empty pojo.property].
Matt
On 9/15/07, Nathaniel Rahav <[EMAIL PROTECTED]> wrote:
> I am trying to execute the following code in JSP but I'm getting errors:
>
> <c:if test="${! bldg.apartments.isEmpty}">,</c:if>
>
> this doesnt work either:
>
> <c:if test="${ bldg.apartments.size >0}">,</c:if>
>
> The problem is that the collection (
> http://www.hibernate.org/hib_docs/v3/api/org/hibernate/collection/PersistentSortedSet.html)
>
> does not expose any bean-style properties (eg getSize() ) ...
>
> Does anybody have a trick for checking collection sizes on a jsp page ?
>
> hopefully there's a really quick answer to this somewhat trivial question ?
>
>
> thanks
> Nat
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]