📄 blank.jsp
字号:
<%@ page language="java" import="java.util.*" import="com.mobile.bean.*"
contentType="text/html; charset=GBK"%>
<--%@page import="com.cmcc.emgr.user.bean.TOperator"%-->
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
System.out.println("operator.name");
if(session.getAttribute("operator") ==null){
response.sendRedirect("../login_system.html");
return;
}
Operator operator = (Operator)session.getAttribute("operator");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'blank.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 href="<%=request.getContextPath()%>/style/stylet.css"
rel="stylesheet" type="text/css">
</head>
<body >
<TR>
<TD height=25>
您现在的位置:登录成功!</TD>
</TR>
<TR>
<TD bgColor=#2650a6><IMG height=1 src="images\blank(1).gif" width=1> </TD>
</TR>
<hr width="100%" size="2">
<font color="red">
<%
//操作员权限不足时进行提示
String noright = request.getParameter("noright");
if (noright != null && noright.equals("nochargeright")) {
out.println("对不起,您没有配置业务费用的权限!" + "\n");
out.println("根据本系统当前权限设置,您只有开户的权限");
}
if (noright != null && noright.equals("nonewopratorright")) {
out.println("对不起,您没有新增操作员的权限!");
out.println("根据本系统当前权限设置,您只有开户的权限");
}
if (noright != null && noright.equals("nomanageroperator")) {
out.println("对不起,您没有操作员管理的权限!");
out.println("根据本系统当前权限设置,您只有开户的权限");
}
if (noright != null && noright.equals("noresourceright")) {
out.println("对不起,您没有资源管理的权限");
out.println("根据本系统当前权限设置,您只有开户的权限");
}
%>
<%//对于一些操作(例如增加操作员等操作)完成后给的提示信息
String res_msg = (String)request.getAttribute("result_msg");
if(res_msg != null){
out.print(res_msg);
}
%></font>
<div id="dengluchenggong">
<div id="dengluchenggongimg">
<div id="dengluchenggongword">欢迎您 <font color="#73A822">
<%
out.print(operator.getOperator_ID());%></font>
!</div>您的权限为:<font color="#73A822"><% out.println(operator.getIs_Admin());%></font>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -