日期:2014-05-17 浏览次数:20790 次
public String execute() {
String FORWARD="error";
System.out.println("调用execute方法");
try {
User user=new User();
HttpServletRequest request=ServletActionContext.getRequest();
List<User> us= userManagerService.managerUser(user);
request.getSession().setAttribute("us", us);
if(us!=null){
FORWARD="success";
}
<b>用户列表页面</b>
<br>
<a href="<%=path%>/manager.action">刷新</a>
<br>
<table width="80%" border="1" cellpadding="0"
style="border-collapse: collapse;" bordercolor="#000000">
<tr>
<td>id</td>
<td>name</td>
</tr>
<c:forEach items="${us}" var="user">
<tr>
<td>${user.id }</td>
<td>${user.name}</td>
<td>
<a href="<%=path%>/logout.action?id=${user.id }">删除</a>
</td>
</tr>
</c:forEach>
</table>