Hi, I set in request �arrayListParent� that holds a couple of �arrayListChildren. I know how to loop through one arraylist using logic:iterate, but in this case, I have an arraylist holding other arrayList. I have pasted my current
jsp code on the bottom that uses scripting to display the arraylist and it�s children, that works fine. But can anyone provide me an example to do that using controls like code directly below here?
Thanks so much for your help,
J
Note: I removed all left/right angle brackets to post this question.
********* Version with jsp tag controls *******
logic:iterate id="courses" name="arrayListParent" scope="request"
type="java.util.ArrayList"
��..//Have no idea how to get arrayListChildren
/logic:iterate
************** Current version in JSP*********
%
ArrayList arrayListParent = (ArrayList)request.getAttribute( �arrayListParent�);
ArrayList attendees = new ArrayList();
Iterator iterator = arrayListParent.iterator();
Attendee attendee = new Attendee();
for (int i = 0; iterator.hasNext();i++) {
attendees = (ArrayList)iterator.next();
Iterator iterator2 = attendees.iterator();
for(int j = 0; iterator2.hasNext();i++) {
attendee = (Attendee)iterator2.next();
%%= attendee.getLastName()%,%=attendee.getFirstName()%
%
}
}
%