posted 16 years ago
<%
ArrayList list = new ArrayList();
ArrayList list2 = new ArrayList();
LinkedHashMap<Integer, ArrayList> map = new LinkedHashMap<Integer, ArrayList>();
list.add(0, "list1 row1");
list.add(1, "list1 row2");
list.add(2, "list1 row3");
list2.add(0, "list2 row1");
list2.add(1, "list2 row2");
list2.add(2, "list2 row3");
map.put(0, list);
map.put(1, list2);
request.getSession().setAttribute("Map",map);
%>
<logic:iterate id="map1" name="Map" indexId="index" >
<table>
<tr>
<logic:iterate id="list1" name="map1" property="value">
<table><tr><td><bean:write name="list1"/></td></tr></table>
</logic:iterate>
</tr>
</table>
</logic:iterate>