I have a ShoppingCart class which contains a property
of type HashMap which contains the key and a LineItem
object as the value. LineItem contains a productKey,
Product and quantity properties.

What I want to accomplish is that for each iteration
to expose the Product inside LineItem object as a page
scoped variable.

<logic:iterate name='shopping.cart' id='lineItem'
property='cart'>
                                
<table width="100%" border="1">
<tr>
<td>
<c:out
value="${lineItem.value.product.productNameES}"/>
</td>
</tr>
</table>
</logic:iterate>

What I want to do is something like:

<bean:define id='theProduct' name='lineItem'
property='product'/> at the beginning of each
iteration.

This does not work. I get a message saying that it
could not find a getter property for property product
inside LineItem. The property is there with the
appropriate getter/setter.

Any help on this would be greatly appreciated.

Thanks



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to