tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JD Salzman <>
Subject RE: el in JSTL / JSP 2.0
Date Thu, 29 Jul 2004 15:46:57 GMT

I had the same prob. And 2 things I did that worked:

1. try using the 2.4 schema definition in web.xml
2. if the PermittedTablibs.tld is involved make sure your <taglib-uri> is

Good luck

-----Original Message-----
From: Paul Wallace [] 
Sent: Wednesday, July 28, 2004 11:17 PM
Subject: el in JSTL / JSP 2.0

        I am trying to introduce JSP 2 with Tomcat 5 (full source
below), and thus experimenting with the JSTL expression language in JSP
tag files (.tag). I am bemused as to why I cannot embed the expression
language within a JSTL tag thus: 
    <c:forEach begin="${a}" end="${b}" varStatus="status">
        ${status.count} <br/>
Tomcat is really unhappy with this:
org.apache.jasper.JasperException: /WEB-INF/tags/wrapper.tag(13,4)
According to TLD or attribute directive in tag file, attribute begin
does not accept any expressions
the same code with <c:forEach begin="1" end="5" varStatus="status">
iterates 5 times with no trouble. I have the latest tld's from Jakarta,
status.count is displaying correctly. 
Any thoughts please?
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib uri="" prefix="c" %>

<tags:wrapper a="1" b="10">
    <p> Wrapped Content </p>
<%@ taglib uri="" prefix="c" %>
<%@ tag body-content="scriptless" %>
<%@ attribute name="a" required="true" %>
<%@ attribute name="b" required="true" %>

    <p> Attributes - ${a}, ${b} </p>
    <c:forEach begin="${a}" end="${b}" varStatus="status">
        ${status.count} <br/>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message