forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtop.jsp
More file actions
47 lines (28 loc) · 890 Bytes
/
top.jsp
File metadata and controls
47 lines (28 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ page import="java.io.*,java.sql.*,java.util.*"%>
<html>
<title>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="CSS/style.css" rel="stylesheet" type="text/css">
<body>
<%
boolean isLog=false;
try
{
//获得用户是否登录的信息
isLog=((String)session.getAttribute("isLog")).equals("1");
}
catch(Exception e){}
if(!isLog)
{
out.println("<script language='javascript'>alert('您还没有登录');parent.location.href='index.jsp';</script>");
}
%>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="784" height="115" align="center" valign="top"><img src="images/logo.jpg" width="778" height="115"></td>
</tr>
</table>
</body>
</html>