3
我有下面的Struts2的JSP內迭代一個問題:S:迭代器來地圖與動態關鍵參數
<s:iterator value="thatCompany.tags" var="tagGroups">
<tr>
<td><s:property value="#tagGroups.key" /></td><!-- this works nicely! -->
<td>
<ul>
<s:iterator value="{thisCompany.tags['#tagGroups.key']}" var="thisTagGroup">
<!-- doesn't work, displays one empty LI element -->
<li> <s:property value="#thisTagGroup.key"/>
</s:iterator>
</ul>
</td>
<!-- snip -->
thisCompany.tags和thatCompany.tags都是Map<String, Map<BigDecimal, String>>
型
奇怪而好奇... –