tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Wallace" <>
Subject RE: el in JSTL / JSP 2.0
Date Thu, 29 Jul 2004 23:46:58 GMT
	Tbanks for that. I was using the 2.4 schema:

<web-app xmlns=""

And tried (although PermittedTablibs.tld is not in the picture):


Using this gave me a 500 error (can't find said file). Before edition it
looked something like: 


The code hasn't changed (below). Are you suggesting I use that URL in
the JSP / .tag? If so, my IDE cannot resolve the library (IDEA). 

Thanks for your thoughts.


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>

        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/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message