Thanks! That worked, and is also much easier to understand.

This is probably a newbie question: How / when does one choose between
using JSTL / Struts Tags? 
Is there any reason to choose Struts tags over JSTL?

Thanks,
PS

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 24, 2005 11:02 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate multiple collections

From: <[EMAIL PROTECTED]>

> The data structure I use is a HashMap, whose values are other
HashMaps.
>
> I'm trying to nest two logic:iterate tags to print out the keys in the

> outer map and the values in the inner Map.

<c:forEach var="outerMapEntry" items="${outerMap}">
    <c:out value="${outerMapEntry.key}"/>
    <c:forEach var="innerMapEntry" items="${outerMapEntry.value}" >
          <c:out value="${innerMapEntry.value}"/>
    </c:forEach>
</c:forEach>

See http://wiki.wendysmoak.com/cgi-bin/wiki.pl?JSTLNestedMapIterate for
test code.

--
Wendy Smoak




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

Reply via email to