now that i figured that out, i'm having some trouble nesting an iterate. now that i have the example below actually able to render, the nested logic:iterate only generates one result (although there are many in the Collection) before moving on to the next result in the outer iterator. any ideas how to fix this?
thanks /gp
<logic:iterate id="list" name="events">
<bean:define id="event" name="list" property="key" type="com.foo.bar.EventDisplay"/>
<bean:define id="tickets" name="list" property="value" type="java.util.Collection"/>
<bean:write name="event" property="title"/>
<logic:iterate id="ticket" name="tickets">
<bean:write name="ticket" property="location"/>
</logic:iterate>
</logic:iterate>
From: "Garth Patil" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: logic:iterate question
Date: Sat, 25 Jan 2003 05:59:56 +0000
i have a HashMap stored in the session (as 'events') i'm trying to use the logic:iterate tag to iterate through it in my jsp in a nested fashion. the HashMap has a bean as the key and a collection of beans as its value. when i try to run the page, i get an error: "Cannot create iterator for this collection". any ideas?
my jsp looks like this.
<logic:iterate id="list" collection="events">
<bean:define id="event" name="list" property="key" type="com.foo.bar.EventDisplay"/>
<bean:define id="tickets" name="list" property="value" type="java.util.Collection"/>
<bean:write name="event" property="title"/>
<logic:iterate id="ticket" name="tickets">
<bean:write name="ticket" property="location"/>
</logic:iterate>
</logic:iterate>
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

