R
Robert Jones
Folks,
I'm trying to use the forEach tag from the JSTL in a small JSP page. I
want to set the end attribute with an EL expression, but Tomcat is
repsonding with the following error:
org.apache.jasper.JasperException: /listloc.jsp(15,2) According to TLD
or attribute directive in tag file, attribute end does not accept any
expressions
I'm under the impression that the end attribute can be set dynamically,
which means it should accept an expression. However it isn't and I have
no idea why. Google searches and searches of the Java forums at Sun
have proven fruitless. Does anyone have any ideas?
Anyway, here is the offending code.
<jsp:useBean id="mybean" scope="session"
class="path.to.classfile" />
<c:forEach begin="0" end="${mybean.length}" step="1" var="i">
<tr>
<td><salsys:location index="${i}" type="type1" /></td>
<td><salsys:location index="${i}" type="type2" /></td>
<td><a href="./modify?">Modify</td>
<td><a href="./delete?">Delete</td>
<td><a href="./review?">Review</td>
<td><a href="./failed?">Failed</td>
<td><a href="./test?">Test</td>
<td><a href="./setup?">Setup</td>
</tr>
</c:forEach>
mybean.length does have a value, and it is correct.
I'm using Tomcat 5.0.2 with J2SDK1.4.2.
Thanks,
Rob
I'm trying to use the forEach tag from the JSTL in a small JSP page. I
want to set the end attribute with an EL expression, but Tomcat is
repsonding with the following error:
org.apache.jasper.JasperException: /listloc.jsp(15,2) According to TLD
or attribute directive in tag file, attribute end does not accept any
expressions
I'm under the impression that the end attribute can be set dynamically,
which means it should accept an expression. However it isn't and I have
no idea why. Google searches and searches of the Java forums at Sun
have proven fruitless. Does anyone have any ideas?
Anyway, here is the offending code.
<jsp:useBean id="mybean" scope="session"
class="path.to.classfile" />
<c:forEach begin="0" end="${mybean.length}" step="1" var="i">
<tr>
<td><salsys:location index="${i}" type="type1" /></td>
<td><salsys:location index="${i}" type="type2" /></td>
<td><a href="./modify?">Modify</td>
<td><a href="./delete?">Delete</td>
<td><a href="./review?">Review</td>
<td><a href="./failed?">Failed</td>
<td><a href="./test?">Test</td>
<td><a href="./setup?">Setup</td>
</tr>
</c:forEach>
mybean.length does have a value, and it is correct.
I'm using Tomcat 5.0.2 with J2SDK1.4.2.
Thanks,
Rob