Sorry for the off-topic post but I'm sure someone here will be able to tell me what's going on with this... I'm trying to use the JSTL forEach tag in a tag file invoked by another tag file and I'm getting an error. Here's an example piece of JSP:

  <c:forEach var="v" begin="0" end="${2 + 2}">
    <p>v: ${v}</p>
  </c:forEach>

That works fine in a JSP. It works fine in a tag file invoked from a JSP. But if the tag file is invoked from another tag file, I get the error "According to TLD or attribute directive in tag file, attribute end does not accept any expressions." I can use the expression language in other places (e.g. outside of custom tags) though.

Is this a limitation of tag files or of Tomcat's implementation of them? Or am I just doing something wrong? If it's a limitation of the JSP spec and/or Tomcat, is there a work-around? Otherwise tag files are about to become a whole lot less useful to me... :-(

L.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to