Hi Martyn, I tested your code as follows:
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <jsp:useBean id="mySet" scope="page" class="java.util.HashSet" /> <c:if test="${!empty mySet}"> NOT EMPTY </c:if> <c:if test="${empty mySet}"> EMPTY </c:if> The above code does not print NOT EMPTY. It only prints EMPTY, on JSTL1.1 + Tomcat 5.5 (Servlet2.4 web.xml) All I can think of is that your JSTL1.1 settings might be a little incorrect. You may want to check the taglib directives, web.xml version (if you're using Servlet 2.4), the correct JAR files. -Rashmi ----- Original Message ---- From: Martyn Hiemstra <[EMAIL PROTECTED]> To: taglibs-user@jakarta.apache.org Sent: Monday, January 15, 2007 4:17:58 AM Subject: c:empty doesnt work on sets Hi All I have a question concerning the c:empty tag. I'm sure this question has been asked before but I cant find an answer anywhere. If I test a set if it's not empty by coding like this: <c:if test="${!empty mySet}"> NOT EMPTY </c:if> I see NOT EMPTY printed on the screen if mySet is empty. If I'm not mistaken this should be fixed in Standard-1.1 Taglib. Any help would be appreciated. Martyn --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]