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!

Passing a Result object to <c:forEach>

843838Nov 3 2005 — edited Sep 4 2007
I have a bean with a method that returns a Result object. I've named the method getSuppliers() in accordance with Bean practices. I'm trying to access the results in my jsp as follows:
<jsp:useBean id="suppliers" class="npp.SuppliersAndContracts" scope="session"/>

    <c:forEach var="item" items="${suppliers.suppliers}">
        <c:out value="${item.id}"/>
    </c:forEach>
However, I'm getting the following error:

Don't know how to iterate over supplied "items" in <forEach>

Am I missing something simple?

Thanks!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2007
Added on Nov 3 2005
8 comments
692 views