-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.jsp
56 lines (44 loc) · 1.73 KB
/
dashboard.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
<%--
Document : dashboard
Created on : 25 Aug, 2024, 8:45:32 PM
Author : HP
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Dashboard</h1>
<%
String ro=request.getParameter("uroll");
String pa=request.getParameter("upass");
String roll=(String)session.getAttribute("roll");
String pass=(String)session.getAttribute("cpass");
String cla=(String)session.getAttribute("class");
String n=(String)session.getAttribute("name");
String m=(String)session.getAttribute("mobile");
String e=(String)session.getAttribute("email");
String g=(String)session.getAttribute("gender");
String d=(String)session.getAttribute("date");
session.setAttribute("name",n);
session.setAttribute("mobile",m);
session.setAttribute("email",e);
session.setAttribute("gender",g);
session.setAttribute("date",d);
session.setAttribute("roll",roll);
session.setAttribute("cpass",pass);
session.setAttribute("class",cla);
if(ro.equalsIgnoreCase(roll) && pa.equals(pass))
{
response.sendRedirect("dashboard1.jsp");
}
else
{
response.sendRedirect("user.jsp");
}
%>
</body>
</html>