I dont want(In fact I can't) create a new class file for this.  I just
wanted to know if it is possible. This is not a pure Struts project and
using some Java is not a problem.
Thanks for the replies.

In next project I will use a wrapper class which extends ArrayList with a
method as Michael said. This is useful when one have lot of reports and dont
want to create a class for each report.

rgds
Antony Paul


----- Original Message -----
From: "Michael McGrady" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 20, 2004 1:48 PM
Subject: Re: accessing collections without iterating.


> Antony Paul wrote:
>
> >I think no because there is no property.
> >The first List(list1) is storing another List(list2). list2 contains
> >Strings.
> >
> >Antony Paul
> >
>
> There are all sorts of ways to solve this.  You can, for example, wrap
> the List in a class which uses getters and setters that bean utils can
> handle, e.g. like the following:
>
>     public String getProperty(Integer integer) {
>       list.get(integer.intValue());
>     }
>
> Comprehende?
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to