C
cold80
Hi guys, I have this problem. I have an object Order that contains an
Hashtable of objects OrderItem. Order has a method getAllOrderItems()
to get all the items it contains. Now I would like to iterate this
hashtable in a jsp page, using jstl. I tried:
<c:forEach var="orderItem" items="${Order.AllOrderItems}">
<c
ut value="${orderItem.Quantity}"/>
</c:forEach>
But I get an error of access to the collection, because jstl can't find
the property AllOrderItems or something like that. I've tried to return
to the page another attribute, with the iterator of the Hashtable, and
even if I don't get the error anymore I can't get the Quantity
property value. What am I doing wrong? Is it because orderItem is of a
different type of Order?
Thank you in advange
Cold
Hashtable of objects OrderItem. Order has a method getAllOrderItems()
to get all the items it contains. Now I would like to iterate this
hashtable in a jsp page, using jstl. I tried:
<c:forEach var="orderItem" items="${Order.AllOrderItems}">
<c
</c:forEach>
But I get an error of access to the collection, because jstl can't find
the property AllOrderItems or something like that. I've tried to return
to the page another attribute, with the iterator of the Hashtable, and
even if I don't get the error anymore I can't get the Quantity
property value. What am I doing wrong? Is it because orderItem is of a
different type of Order?
Thank you in advange
Cold