-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.jsp
More file actions
112 lines (110 loc) · 2.52 KB
/
2.jsp
File metadata and controls
112 lines (110 loc) · 2.52 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<%
response.setHeader("Cache-Control","no-cache,no-store,must-revalidate");
response.setHeader("Pragma","no-cache");
response.setHeader("Expires","0");
%>
<!DOCTYPE html>
<html>
<head>
<title>
User Login
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<style >
body {
background: white;
text-align: center;
}
.content {
max-width: 350px;
margin-top: 160px;
margin-left: 530px;
background: white;
padding: 50px;
text-align: left;
}
.opt{
position: fixed;
top: 0;
left: 0;
right: 0;
padding-top: 25px;
padding-bottom: 15px;
}
</style>
<body style="background: purple" >
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%
session.removeAttribute("userid");
%>
<nav class="opt" style="background: black">
<table>
<tr>
<button type="submit" style=" display:block; font-size: 16px; cursor: pointer; margin-left: 40px;" onclick="location.href='1.jsp'" >
<a href="1.jsp" style="text-decoration-line: none">
<i class="fa fa-home"></i>
<span>Home</span>
</a>
</button>
</tr>
</table>
</nav>
<div class="content" >
<form action="2b.jsp" method="Post">
<h1 style="text-align: center">
Sign In
</h1>
<table>
<tr>
<td>
<input type="text" placeholder="Login Id" name="id" size="35px" required="" style="font-size: 15px">
<br/><br/>
</td>
</tr>
<tr>
<td>
<input type="Password" placeholder="Password" name="pass" size="35px" required="" style="font-size: 15px">
<br/>
</td>
</tr>
<tr>
<td>
<p style="font-size: 18px">
Login As :
<select name="Login" style="cursor: pointer;">
<option>Agent</option>
<option>Seller</option>
<option>Buyer</option>
</select>
</p>
</td>
</tr>
<tr>
<td>
<button type="submit" style="background-color:skyblue; margin-left:auto; margin-right:110px; display:block; font-size: 16px; cursor: pointer;" >Login</button>
<%
if(session.getAttribute("error")!=null)
{ session.removeAttribute("error");
%>
<p style="text-align: center; color: red ">
Incorrect User Id or Password !!
</p>
<%
}
%>
</td>
</tr>
<tr>
<td>
<p style="text-align: center; font-size: 18px">
New Here ??<a href="3.jsp" style="text-decoration-line: none; cursor: pointer;">Register Now</a>
</p>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>