I've been struggling with this issue all day, and I need some help. I am in no way a Struts expert and have relied on a peer and a book to get me to where I am. Please help!
I have an attribute on session (claimants), which is an ArrayList of a bean which contains several properties, one of which is another ArrayList (causes). I need to loop through claimants, rendering the instance properties (like claimant name) on a line, followed by all causes (0 to many) under the claimant name... something like this ...
JOHN DOE (property name on claim index #0) Cause #1 (cause name on cause index #0) Cause #2 (cause name on cause index #1) Cause #3 (cause name on cause index #2)
JANE SMITH (property name on claim index #0) Cause #1 (cause name on cause index #0) Cause #2 (cause name on cause index #1)
Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we strictly enforce. Please re-read this policy and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
As far as your question, you want to take a look at the Struts nested taglib. Check out this site and read the sections titled [NeXt] and PilotLight for tutorials on using this taglib.
K. E. Kerks
Joined: Jan 04, 2005
Thanks. I'll look at the references you provided and see if I can figure it out.