Problem with forEach in jstl

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:eek: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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

JSTL forEach 7
JSTL attempt in JSP 5
JSTL forEach 3
JSTL problem 7
JSTL newbie question 3
jstl foreach please help 2
JSTL Question 10
JSTL in WebLogic 9 0

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top