Thanks Daniel, this worked.
I have tried nesting a iterate tag earlier today but I wasn't setting it correct. Thanks for the answer. Regards Karim PS: Thanks to the other replies too. "Daniel Perry" <[EMAIL PROTECTED]> wrote: >You need to nest another iterate'er in order to iterate through the inner >list for each object: > ><logic:iterate id="process" name="processlist" > > <bean:write name="process" property="name"/> > <bean:write name="process" property="ID"/><br> > <logic:iterate id="task" name="process" property="tasklist"> > <bean:write name="task" property="name"/><br> > </logic:iterate> ></logic:iterate> > >Daniel. > >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: 31 August 2004 17:48 >> To: [EMAIL PROTECTED] >> Subject: Iterating over collection ... >> >> >> Hello there >> >> I am having some issue getting the correctly output while >> iterating over my collection >> >> I'm doing the following: >> >> I'm iterating over an processList(ArrayList) which contains 4 >> objects of type ProcessBO. >> ProcessBO has 3 attributes; >> >> int ID >> String name >> ArrayList tasklist >> >> >> The tasklist holds objects of type TaskBO >> TaskBO has several attributes of type String >> >> In my jsp I am iterating over the processList like this: >> >> <logic:iterate id="process" name="processlist" > >> <bean:write name="process" property="name"/> >> <bean:write name="process" property="ID"/><br> >> >> <bean:write name="process" property="tasklist"/><br> >> </logic:iterate> >> >> which prints the name, ID as I want it to but for the property >> tasklist it prints the class name for each object >> in the tasklist. >> >> I would like to access the attributes of the objects inside the >> tasklist and print them similar to the other output >> with bean:write >> >> I have looked searched for an answer in the documentation where >> it says I could use something like "tasklist.name" for the >> property value but his did not work. >> >> Help would be very much appreciated >> >> Thanks >> >> Karim >> >> >> >> >> >> __________________________________________________________________ >> Switch to Netscape Internet Service. >> As low as $9.95 a month -- Sign up today at >> http://isp.netscape.com/register >> >> Netscape. Just the Net You Need. >> >> New! Netscape Toolbar for Internet Explorer >> Search from anywhere on the Web and block those annoying pop-ups. >> Download now at http://channels.netscape.com/ns/search/install.jsp >> >> --------------------------------------------------------------------- >> 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] > > __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]