<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'list.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" href="<%=basePath%>/css/index_work.css" type="text/css"></link>
<script type="text/javascript" src="<%=basePath%>/js/jquery-1.8.2.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<table>
<tr>
<th>id</th>
<th>用户名</th>
<th>密码</th>
<th>角色</th>
<th>权限</th>
<th><input type="button" value="添加用户"></th>
</tr>
<c:forEach items="${userList }" var="u">
<tr>
<th>${u.uid }</th>
<th>${u.username }</th>
<th>${u.password }</th>
<th>
<c:forEach items="${u.r}" var="r">
${r.rname},
</c:forEach>
</th>
<th>
<c:forEach items="${u.r}" var="r">
<c:forEach items="${r.p}" var="p">
${p.pname},
</c:forEach>
</c:forEach>
</th>
<th>
<input type="button" value="删除">
</th>
</tr>
</c:forEach>
<tr>
<th colspan="4"><input type="button" value="用户分配角色" onclick="location='<%=basePath%>/view/updRole.jsp'"></th>
<th colspan="2"><input type="button" value="角色分配权限" onclick="location='<%=basePath%>/view/updPower.jsp'"></th>
</tr>
</table>
</body>
</html>
如果你什么都不能做,那么就请你什么也不要说。
1007

被折叠的 条评论
为什么被折叠?



