1 回答
TA贡献1821条经验 获得超6个赞
我认为你也必须迭代 map (map类的字段Spravochnik)。也许是这样:
<c:forEach var="sprav" items="${spravList}">
<tr>
<td>
${sprav.id}
</td>
<td>
<c:forEach items="${sprav.map}" var="entry">
Key = ${entry.key}, value = ${entry.value}<br>
</c:forEach>
</td>
</tr>
</c:forEach> 我认为你也必须迭代 map (map类的字段Spravochnik)。也许是这样:
<c:forEach var="sprav" items="${spravList}">
<tr>
<td>
${sprav.id}
</td>
<td>
<c:forEach items="${sprav.map}" var="entry">
Key = ${entry.key}, value = ${entry.value}<br>
</c:forEach>
</td>
</tr>
</c:forEach>
添加回答
举报