Hello all, I'm trying to iterate through a List of Maps(I have a method
"public List<Map> getRecords()" in the action) using s:iterator. I can
iterate through the List without problems, but I can not get it to iterate
through the entries of the map. So far I've got this:

[..]
<s:iterator value="records" status="recordsStatus" var="record">
        <s:if test="#recordsStatus.index ==0">
            <tr>
                <td colspan="*"></td>
            </tr>
        </s:if>
        <tr>
            <s:iterator value="record.entrySet()" status="fieldStatus">
            <td>
                <s:property value="key"/>/<s:property value="value"/>
            </td>
            </s:iterator>
        </tr>
    </s:iterator>
[..]

The tag generates the

<tr></tr>

for each entry, but it is not going through the second iterator, so I
suppose I'm doing something wrong with the value attribute. Can you help me
with it?

Thanks

Jose

Reply via email to