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

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

-- 
Wendy in Chandler, AZ

Reply via email to