Using jstl empty STILL doesnt work for set objects. In version 1.0 there was a bug when using empty on Sets now in 1.1 it should be solved but it isnt. I have a set object and it's empty. If I do this: <c:if test="${!empty mySet}"> NOT EMPTY </c:if> I will see NOT EMPTY in the screen when the set is empty.
This seems to be working fine for me. Here's the JSP snippet I used to test it: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@page import="java.util.*" %> <% pageContext.setAttribute("mySet", new HashSet()); %> <c:if test="${!empty mySet}"> NOT EMPTY </c:if>
Seems to not be a problem both for Bjorn's testing above and for Rashmi Rubdi on the user mailing list. Marking as WORKSFORME.