Bug 41363

Summary: Jstl empty bug in Standard-1.1 Taglib
Product: Taglibs Reporter: bugmenot <bugmenot>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P2    
Version: 1.2.0   
Target Milestone: ---   
Hardware: All   
OS: Linux   

Description bugmenot 2007-01-15 00:56:19 UTC
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.
Comment 1 Bjorn Townsend 2007-01-30 13:27:19 UTC
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>
Comment 2 Henri Yandell 2007-01-31 11:53:22 UTC
Seems to not be a problem both for Bjorn's testing above and for Rashmi Rubdi 
on the user mailing list. Marking as WORKSFORME.