This is how I do it:
/* drugClassPropsSrv is my map */
<s:if test="drugClassPropsSrvc.size > 0">
<s:iterator value="%{drugClassPropsSrvc}" id="prop">
<tr>
<th scope="row"><s:property value="#prop.key"/></th>
<s:if test="#prop.value eq 'Yes'">
<th scope="row"><s:property value="#prop.value"/></th>
</s:if>
<s:else>
<th scope="row" class="highlight"><s:property
value="#prop.value"/></th>
</s:else>
</tr>
</s:iterator>
On 9/28/07, Marco Carnevale <[EMAIL PROTECTED]> wrote:
>
> I have a java.util.Map in my action (value stack) and I simply want to
> print
> it's contents
> in an HTML table in my JSP showing the key value pairs. However, I am
> having
> an issue figuring out the proper syntax.
>
> My initial approach is to iterate over the Maps keys and then during each
> iteration, call the maps get() method passing the key to it which is not
> working. Could someone
> who has done this before show me the struts tag syntax that would
> accomplish
> this?
>
> Thanks.
> Marco
>