forked from halnigalni/DB_Team3_Phase4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MypageSub.jsp
46 lines (32 loc) · 849 Bytes
/
MypageSub.jsp
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
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
<form action="">
<%
String serverIP = "localhost";
String strSID = "orcl";
String portNum = "1521";
String user = "university";
String pass = "comp322";
String url = "jdbc:oracle:thin:@"+serverIP+":"+portNum+":"+strSID;
int msg = (Integer)session.getAttribute("memberCnt");
String cusmy_id = (String)session.getAttribute("cus_id");
session.setAttribute("cus_id", cusmy_id);
if(msg == 0)
{
response.sendRedirect("No_membership.jsp");
}
else
{
response.sendRedirect("Membership.jsp");
}
%>
</form>
</body>
</html>