日期:2014-05-20 浏览次数:20720 次
Collection availableItems;
availableItems = tpermissionService.findAll(Tpermission.class);
Iterator<Tpermission> it = availableItems.iterator();
Map<String, String> map = new HashMap<String, String>();
while(it.hasNext())
{
tpermission = it.next();
map.put(tpermission.getAuthid(),tpermission.getAuthname());
}
return "padd";
<table border="0" cellspacing="0" cellpadding="0" width="1000" >
<tr>
<td valign="top" align="center" bgcolor="#6da9fb">权限添加成功!</td>
</tr>
</table>
<table>
<tr>
<c:forEach items="${map}" var="tpermiss">
<td>fff ${tpermiss.key}</td>
<td>vvv ${tpermiss.value}</td>
</c:forEach>
</tr>
</table>