-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.jsp
55 lines (54 loc) · 1.19 KB
/
form.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
<%@ page session="true" %>
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Cache-Control","no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma","no-cache");
session.removeAttribute("login");
session.removeAttribute("password");
session.invalidate();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>
<br>
<br>
<form method="post" action="validate.jsp">
<table align="center">
<tr>
<td>Login</td>
<td>:</td>
<td><input type="text" name="login" size="20"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input type="password" name="password" size="20"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td align="center"><input type="submit" value="Enter"> <input type="reset" value="Clear"></td>
</tr>
<tr>
<td align="center" colspan="3">
<font color="red">
<%
String error = request.getParameter("error");
if(error != null){
%>
Invalid Login and Password!
<%
}
%>
</font>
</td>
</tr>
</table>
</form>
</body>
</html>