L
Luis Pedro
Dear all,
I've an HashMap of type model <String, HahsMap>. The second HashMap
is of type <String, Object>.
I'm trying to iterate in this HashMap in my jsp page and things
like:
<c:forEach var="element" items="${model.products.product}">
<cut value="${element.name}"/>
and
<c:forEach var="element" items="${model.products.provider}">
<cut value="${element.name}"/>
But I want to access to product and provider simultaneously.
I tried
<c:forEach var="element" items="${model.products}">
<cut value="${element.product.name}"/>
<cut value="${element.provider.name}"/>
But this does not work:
javax.el.PropertyNotFoundException: Property 'product' not found on
type java.util.HashMap$Entry
Any idea on how to solve this?
Thanks very much in advance for your time.
Best regards,
Luis
I've an HashMap of type model <String, HahsMap>. The second HashMap
is of type <String, Object>.
I'm trying to iterate in this HashMap in my jsp page and things
like:
<c:forEach var="element" items="${model.products.product}">
<cut value="${element.name}"/>
and
<c:forEach var="element" items="${model.products.provider}">
<cut value="${element.name}"/>
But I want to access to product and provider simultaneously.
I tried
<c:forEach var="element" items="${model.products}">
<cut value="${element.product.name}"/>
<cut value="${element.provider.name}"/>
But this does not work:
javax.el.PropertyNotFoundException: Property 'product' not found on
type java.util.HashMap$Entry
Any idea on how to solve this?
Thanks very much in advance for your time.
Best regards,
Luis