Try using <bean:write name="collection2[indexId]" />. indexId should be replaced with 0, 1, 2, ... as it iterates and the underlying BeanUtils will extract the n-th element from the collection. I don't think this will if you are using an unsorted collection (set, map) because they don't support get(int)
On 11/10/06, Van Nguyen <[EMAIL PROTECTED]> wrote:
Hi, I have two ArrayList that I need to iterate through: <logic:iterate id="line" indexId="indexId" name="collection1"> <bean:write name="line" /> // write info contained in collection2 // something like this… but not working?? <bean:write name="collection2[indexed]" /> </logic> collection1 and collection2 will always have the same number of records… Any ideas? United Rentals Consider it done.™ 800-UR-RENTS unitedrentals.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]