Yeah, I am trying to make input tags out of them

Thanks anywa

Steve

-----Original Message-----
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 10:54 AM
To: Struts Users Mailing List
Subject: Re: logic iterate with nested class (I think that's the term)


On Fri, 7 Mar 2003 10:31:08 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Ignore this one,
> 
> It seems that Struts doesn't know to go into the Hashtable entry and
> just get the value,

You can iterate through a map and display the keys and values just fine:

<logic:iterate id="element" name="someMapInScope">
    <bean:write name="element" property="key"/> - 
    <bean:write name="element" property="value"/><BR>
</logic:iterate>

Or better yet use JSTL tags:

<c:forEach var="element" items="${someMapInScope}">
    <c:out value="${element.key}"/> - 
    <c:out value="${element.value}"/><br>
</c:forEach>

 
-- 
Rick Reumann

---------------------------------------------------------------------
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]

Reply via email to