<%
Map<String,String> map = new HashMap<String,String>();
map.put("1","en");
map.put("2","中华");
request.setAttribute("maptest",map);
%>
<!--s:select的value用于显示当前默认项 ,value=2,默认值为"中华" -->
<s:select id="maptest" name="maptest"
list="#request.maptest" value="2">
</s:select>
<table>
<!―list中存放的是UserInfo对象,然后把list放入session中,每个UserInfo有name,address等属性-->
<s:iterator value="#session.list" id="usrinfo" >
<tr>
<td>
<s:property value="#usrinfo.name" />
</td>
<td>
<s:property value="#usrinfo.address" />
</td>
</tr>
</s:iterator>
</table>
</body>
</html>