Bug 41363 - Jstl empty bug in Standard-1.1 Taglib
Summary: Jstl empty bug in Standard-1.1 Taglib
Status: RESOLVED WORKSFORME
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.2.0
Hardware: All Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 00:56 UTC by bugmenot
Modified: 2007-01-31 11:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.