我有将List作为值和整数作为键的映射。如果键为0,1,我想显示列表的值。如何在jsp中使用Struts2?
Map<Integer, List<String>> parameter_map = new LinkedHashMap<Integer, List<String>>();
<s:iterator value="parameter_map">
<h3><s:property value="key" /></h3>
<table>
<s:iterator value="value">
<tr><td><s:property /></td></tr>
</s:iterator>
</table>
</s:iterator>
这是我在jsp中试图显示的内容。但没有显示任何内容。
答案 0 :(得分:0)