-
Notifications
You must be signed in to change notification settings - Fork 0
/
dregisterdone.jsp
64 lines (39 loc) · 1.16 KB
/
dregisterdone.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="database.*, model.*, java.util.List" %>
<%@ page errorPage="error.jsp"%>
<%
Doctor doctor = null;
if(request.getAttribute("doctorObj") != null) {
//get doctorObj attribute from request and retrieve Doctor
doctor = (Doctor) request.getAttribute("doctorObj");
} else {
/*
* if request does not have the attribute doctorObj,
* means that user tried to access this page directly (via the url).
* In that case, redirect back to form.
*/
response.sendRedirect("doctor-register.jsp");
return;
}
%>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="css/register-done.css">
<title>Registration done</title>
<meta http-equiv="refresh" content="1;url=<%=request.getContextPath() %>/index.jsp" />
</head>
<body>
<div class="container">
<div class="page-header">
<h1>Registration done</h1>
</div>
<div class="row">
<div class="col-xs-12 col-md-10 col-lg-8">
<h2>Your registration completed successfully</h2>
<h3>You can now login!!</h3>
</div>
</div>
</div>
</body>
</html>