Here is the solution - 
HashMap hMap = (HashMap) request.getSession().setAttribute("alpha",alpha);

<logic:iterate id="map" collection="<%= hMap %>" >

Regards,
Janarthan S
Craig Tataryn <[EMAIL PROTECTED]> wrote:
Try this:



When you iterate a map, the elements are of type Map.Entry
(http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.Entry.html)

See: http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate for more 
details.

Craig



On Wed, 10 Mar 2004 17:17:15 -0300, "Henrique VIECILI" wrote:

> 
> Hi,
> 
> I have a bean in session scope wich is a HashMap of HashMap, i.e., the key's
> value stored is another HashMap.
> 
> Ex.:
> 
> HashMap alpha = new HashMap();
> alpha.put("key1",new HashMap());
> 
> request.getSession().setAttribute("alpha",alpha);
> 
> But, when I use :
> 
> 
> it produces an "JSPException: Cannot create iterator for this collection"
> 
> Is that any known bug? How to correct this issue?
> 
> Thanx,
> Henrique Viecili
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Reply via email to