后台的代码:
List<Map<String, String>> list=new ArrayList<Map<String,String>>();
for(int i =0 ;i<10;i++){
Map<String, String> map=new HashMap<String, String>();
map.put("tt", "map"+i);
list.add(map);
}
session.setAttribute("list",list);
前台代码:
<c:forEach var="map" items="${sessionScope.list}">
${map.tt}或者${map['tt']}
</c:forEach>