jstl foreach loop attribute items does not accept any expressions'
843838Nov 15 2005 — edited Jul 29 2010Hi,
I'm trying to use c:foreach loop to loopthrough a list from request object.
<% List idList = ( List ) request.getAttribute("idList" ) ; %>
<c:forEach var="id" items="<%=idList %>">
<TR>
<TD>==<c:out value="${id}" />==</TD>
</TR>
</c:forEach>
But I got error msg saying:
According to TLD or attribute directive in tag file, attribute items does not accept any expressions'
Any ideas of how to fix this?
Thank you.
cc