Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jstl foreach loop attribute items does not accept any expressions'

843838Nov 15 2005 — edited Jul 29 2010
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2010
Added on Nov 15 2005
17 comments
5,641 views