On Sat, 23 Nov 2002, Wendy Smoak wrote:

> Can you nest <c:forEach> tags?  I can't find an example of it, and
> it's not working for me.

Sure.

> <c:forEach items="${itemList}" var="item">
>       <hr>
>       <c:out value="${item.id}"/>. <c:out value="${item.text}"/><br>
>       
>       <c:forEach items="${item.options}" var="option" />
>          <c:out value="${option.text}"/>
>       </c:forEach>
>       
>       <c:out value="${item.answer}"/><br>
> </c:forEach>
> 
> The first </c:forEach> tag ends the loop.
> 
> Should this be working?  Does anyone see anything wrong with this?

It looks right to me.  Are you sure you're using our Standard Taglib
implementation?  This could be a bug with other partial implementations.

Shawn


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

Reply via email to