Hi all
I have a problem with getting a hierarchy of nested properties to display.
I have an ActionForm which has a property A of type HashMap. A is keyed on
Strings, and each value of A is a Collection (ArrayList). This collection
contains objects of type B.
I am trying to iterate through the keys A, and for each key, iterate through
the corresponding value (which is an ArrayList of B objects), i.e. I am
trying to do 2 levels of iteration. However, I cannot get this to work using
Struts tags. The following is one attempt to get this to display:
<nested:iterate id="idForA" name="A">
<nested:iterate name="A" property="value"> <!--this should access
collection of B objects -->
<nested:text property="propertyOfB"> <!--allow user to
enter a property of B -->
</nested>
</nested>
</nested>
I am quite new to Struts, and have spent a lot of time trying to get this to
work, but no luck. Any help will be appreciated!
Thanks
Danielle
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]