You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Garth Patil <ga...@hotmail.com> on 2003/01/25 06:59:56 UTC
logic:iterate question
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>