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

Reply via email to