How to iterate 2 nested collections w <logic:iterate> without a "getter"
- From: John <gundam.f0rtre55@xxxxxxxxxxxxxx>
- Date: Mon, 31 Mar 2008 12:38:59 -0700 (PDT)
Hi all,
I have to work on a third party jar-file that gives me some
headache...
I have an ArrayList<E> of some objects in my ActionForm - so iterating
through this ArrayList is not a problem: I just use logic:iterate in
the usual way, piece of cake :-)
BUT: the objects within the ArrayList contain a method that returns an
object of type Iterator (so also this would be a piece of cake to
iterate), but the method that returns this Iterator object is not a
"getter".
The signature of the method is:
public java.util.Iterator modifiers()
----->Iterates over the modifiers.
My BIG trouble is that the method is not called "getModifiers", so I'm
stuck in with my nested double <logic:iterate>, because struts tells
me "there is no getter for bean xXXX - for the nested object.
I suppose it is because Struts looks after a method in the bean
beginning with "get". Since it does not begin with "get" , Struts
cannot iterate through this Iterator object, and I cannot extract the
necessary informations.
Does anybody know how to process such an Iterator with a method that
does not begin with "get"? Any suggestions?
Thank you very much for your suggestions - I'm quite in trouble
because of that...
John
.
- Follow-Ups:
- Re: How to iterate 2 nested collections w <logic:iterate> without a "getter"
- From: Roedy Green
- Re: How to iterate 2 nested collections w <logic:iterate> without a "getter"
- From: Andrea Francia
- Re: How to iterate 2 nested collections w <logic:iterate> without a "getter"
- Prev by Date: Re: eclispe with portlet (2)
- Next by Date: Re: How to iterate 2 nested collections w <logic:iterate> without a "getter"
- Previous by thread: eclispe with portlet (2)
- Next by thread: Re: How to iterate 2 nested collections w <logic:iterate> without a "getter"
- Index(es):