martin- I get "java.lang.ClassCastException: java.util.Hashtable$Entry" if I
do what you suggest.
--a

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 23, 2001 3:05 PM
To: [EMAIL PROTECTED]
Subject: Re: Postmortem (iterate, wrap, hashtable, nested)


The <logic:iterate> tag has a 'type' attribute, which can be used to specify
the type to be used for the element exposed through the 'id' attribute. This
should allow you to get rid of the "cast" like this:

<logic:iterate name="invoiceForm"
               property="invoice.invoiceLineItems"
               id="lineItem"
               type="InvoiceLineItem" >
    <bean:write name="lineItem" property="aLineItemProperty"/>
    </p>
</logic:iterate>

--
Martin Cooper

Reply via email to