> -----Original Message-----
> From: Antony Paul [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 19, 2004 8:32 PM
> To: Struts Users Mailing List
> Subject: Re: accessing collections without iterating.
>
>
> I think no because there is no property.
> The first List(list1) is storing another List(list2). list2 contains
> Strings.
Something like:
ArrayList list1 = new ArrayList();
ArrayLit list2 = new ArrayList();
list1.add(list2);
list2.add( "String 1");
list2.add( "String 2");
You would do this:
<logic:iterate id="item1" name="list1" scope="session">
<logic:iterate id="item2" name="item1" >
<bean:write name="item2"/>
</logic:iterate>
</logic:iterate>
>
> Antony Paul
>
> ----- Original Message -----
> From: "Jim Barrows" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, August 19, 2004 10:36 PM
> Subject: RE: accessing collections without iterating.
>
>
>
>
> > -----Original Message-----
> > From: Antony Paul [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 19, 2004 3:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: accessing collections without iterating.
> >
> >
> > Hi all,
> > My situation is List inside List and I am using Struts
> > 1.0. There is no
> > beans. I need access to List by index(using Struts).
> > For ex.
> >
> > <logic:iterate id="list2" name="list1" scope="session">
> > <tr>
> > <td><bean:write name="list2" property="list2[0]">
> > <td><bean:write name="list2" property="list2[1]">
> > </logic:iterate>
>
> Would this work:
> <logic:iterate id="item1" name="list1" scope="session">
> <logic:iterate id="item2" name="item1" property="list2">
> <bean:write name="item2" property="stuff"/>
> </logic:iterate>
> </logic:iterate>
>
> >
> > Is this possible. There are no JSTL.
> > Or any other way do this without writing a new class.
> >
> > rgds
> > Anto Paul
> >
> >
> >
> ---------------------------------------------------------------------
> > 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]
>
>
> ---------------------------------------------------------------------
> 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]