That was quick! Thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 9:57 AM To: [EMAIL PROTECTED] Subject: RE: Collection within Collection
Try nested:iterate tag Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -----Original Message----- From: Cohan, Sean [mailto:[EMAIL PROTECTED]] Sent: January 14, 2003 9:59 AM To: Struts (E-mail) Subject: Collection within Collection I have a collection (of ArrayLists) within a collection of (ArrayLists). That is: public class HistoryItemImpl implements HistoryItem { private String objectName; private List deltaList; ... } public class DeltaItemImpl implements DeltaItem { private String columnName; private Object oldValue; private Object newValue; ... } In my action class I call a method that returns a collection of historyItems. I set that in request scope: request.setAttribute("historyItems", historyList); And then iterate though it on me page: <logic:iterate id="historyItem" name="historyItems" type="com.gosps.cbd.util.HistoryItem"> For each historyItem iteration, I want to iterate though the deltaItems: <logic:iterate id="deltaItem" name="deltaItems" type="com.gosps.cbd.util.DeltaItem"> How can I do this? How do I refer to the deltaItem collection within each historyItem collection? Thanks. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

