> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 9:48 AM > 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> Instead of ^^^^^^^^ do this: <logic:iterate id="task" name="processlist" property="tasklist"> <bean:write name="task" property="property1"/> </logic:iterate>
> </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]