> I suspect that you really want this:
> <logic:notPresent name="biblios" scope="session">
Yes, I did want the value of the object 'biblios' not the value of the
object pointed to by the value of biblios.
Thanks,
> Maybe...
> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
> <c:if test="${empty biblios}">
> ...
> </c:if>
That is really the right way, I was just trying all the libs, because
something wasn't working, for example:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
...
<c:if test="${empty biblios}">
There are NO biblios (Using c:if).</br>
</c:if>
Results in:
org.apache.jasper.JasperException: /pages/Biblio.jsp(23,0) According to
TLD or attribute directive in tag file, attribute test does not accept
any expressions
(The c:if is line 23)
> BTW, you don't have to put the tlds in WEB-INF and map them in web.xml. The
> tlds are inside the various .jar files, if you use the correct URI, they
> will automatically be located.
Maybe that's part of my c: problem. I have jstl.jar and standard.jar
from the jakarta-taglibs-standard-1.1.2 distribution and all I see are
some classes and a MF file in both.
But the README with the distribtion does say:
"To use this distribution with your own web applications, simply copy
the JAR files in the 'lib' directory (jstl.jar and standard.jar) to your
application's WEB-INF/lib directory"
I'm running tomcat 5.0.19 and trying to use
jakarta-taglibs-standard-1.1.2 with dates on the jars from October 2004
(which is a little confusing because 1.1 implements the JSP 2.0 spec if
I understand at least this correctly).
When I comment out all of the standard http://java.sun.com/jsp/jstl/
references in my web.xml (despite not seeing any TLDs in the jars), I
get exactly the same error; "attribute test does not accept any expressions"
Any help would be deeply appreciated.
-Paul