📄 selectuseraction.jsp
字号:
<%@ page language="java" import="bo.*,java.util.Vector"
contentType="text/html;charset=GBK"%>
<%
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>权限管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<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 href="qxgl.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
UserGR user = (UserGR) request.getSession().getAttribute("user");
Vector roleAction = (Vector) request.getSession().getAttribute(
"action");
request.getSession().getAttribute("role");
if (user != null) {
%>
<table width="700" align="center">
<tr>
<td class="td2" align="center">
<a href="main.jsp?url=/userinfomanage/selectuserinfo.jsp">【查看个人信息】</a>
</td>
<td class="td2" align="center">
<a href="main.jsp?url=/userinfomanage/selectuseraction.jsp">【查看个人权限】</a>
</td>
<td class="td2" align="center">
<a href="main.jsp?url=/userinfomanage/updateuserinfo.jsp">【修改个人信息】</a>
</td>
<td class="td2" align="center">
<a href="main.jsp?url=/userinfomanage/updateuserpassword.jsp">【修改个人密码】</a>
</td>
</tr>
<tr>
<td colspan="5">
<table align="center" class="td1" width="100%">
<tr>
<td class=td2 align="center">
序号
</td>
<td class=td2 align="center">
权限名
</td>
<td class=td2 align="center">
权限描述
</td>
</tr>
<%
for (int i = 0; i < roleAction.size() && roleAction != null; i++) {
Action allRoleAction = (Action) roleAction.get(i);
%>
<tr>
<td class=td1 align="center">
<%=allRoleAction.getActionId()%>
</td>
<td class=td1 align="center">
<%=allRoleAction.getActionName()%>
</td>
<td class=td1 align="center">
<%=allRoleAction.getActionDescription()%>
</td>
</tr>
<%
}
%>
</table>
</td>
</tr>
</table>
<%
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -