Adam,
Thanks, I'll check it out. However, it doesn't appear
that the el tags were ignored. The loop executed, but
the value of "${i}" wasn't rendered. Right?
--- Adam Hardy <[EMAIL PROTECTED]>
wrote:
> Thomas,
> use the default="" attribute to force it to output
> something on error or
> when the value is null.
>
> As for your output, the EL is obviously not being
> evaluated. Have you
> got the setting in your web.xml to affect this?
> Check out the JSP2.0
> spec from Sun. Section 3.3.2 - deactivating EL
> evaluation. Worth the
> read, definitely. It's <el-ignored>
>
> Adam
>
> On 03/02/2004 11:31 PM Thomas McDonald wrote:
> > How come this tag is outputing nothing, i.e., it
> > doesn't render the value of 'i'. Is this an jstl
> > expression language bug?
> >
> > I can't get an error to troubleshoot! Obviously
> the
> > tags are working, otherwise it wouldn't have
> looped,
> > right?
> >
> >
> > code:
> >
> > <%@ taglib uri="http://java.sun.com/jstl/core"
> > prefix="c"%>
> > <html>
> > <body>
> > <br>time: <%=new java.util.Date() %>
> > <br>
> > <c:forEach var="i" begin="1" end="10" step="1">
> > <c:out value="${i}" />
> > <br />
> > </c:forEach>
> > </body>
> > </html>
> >
> >
> >
> > output:
> >
> > time: Tue Mar 02 17:11:53 EST 2004
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> > ${i}
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Search - Find what you�re looking for
> faster
> > http://search.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]