forked from AniruddhoMajumder/StakeholdingDEPRECATED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signupstatus.jsp
45 lines (37 loc) · 1.17 KB
/
signupstatus.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
<!DOCTYPE html>
<html>
<head>
<title>Stockmarket | Registration Successfull</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-3">
</div>
<%
if(null == session.getAttribute("SIGNUP_STATUS") || null == session.getAttribute("USER_TYPE")){
response.sendRedirect("./index.jsp");
}else{
if(session.getAttribute("SIGNUP_STATUS") == "SUCCESS"){
session.removeAttribute("SIGNUP_STATUS");
session.removeAttribute("USER_TYPE");
out.println("<div class=\"col-xs-6 bg-success\" style=\"text-align:center; min-height: 100px;\">Registration Successful</div>");
}else if(session.getAttribute("SIGNUP_STATUS") == "FAILURE"){
session.removeAttribute("SIGNUP_STATUS");
session.removeAttribute("USER_TYPE");
out.println("<div class=\"col-xs-6 bg-danger\">Registration Unsuccessful</div>");
}else{
response.sendRedirect("./index.jsp");
}
}
%>
<div class="col-xs-3">
</div>
<div class="col-xs-12">
<a href="./index.jsp">Go Back to Home</a>
</div>
</div>
</div>
</body>
</html>