-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy patherror.jsp
More file actions
67 lines (66 loc) · 1.51 KB
/
error.jsp
File metadata and controls
67 lines (66 loc) · 1.51 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
<!-- Copyright (c) Nishit Tated. All Rights Reserved.
* Project name: Online Election Voting System
* This project is licensed under the MIT License, see LICENSE.
*/ -->
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title></title>
</head>
<body>
<script type="text/javascript">
//scriptlet tag -in this we can write complete java code
<%
try
{
String ms = request.getParameter("msg");
if (ms.equals("abc"))
{%>
alert("All fields are mandatory");
window.location.href="login.jsp";
<%}
else if (ms.equals("man"))
{%>
alert("All fields are mandatory");
window.location.href="contact.jsp";
<%}
else if (ms.equals("failed"))
{%>
alert("Please enter valid credentials");
window.location.href="login.jsp";
<%}
else if (ms.equals("captcha"))
{%>
alert("Please enter same captcha");
window.location.href="signin.jsp";
<%}
else if (ms.equals("date"))
{%>
alert("Please enter valid date! You should be 18 to give vote");
window.location.href="signin.jsp";
<%}
else if (ms.equals("password"))
{%>
alert("Please enter same password");
window.location.href="signin.jsp";
<%}
else if (ms.equals("otp"))
{%>
alert("Otp Not Matched. Please enter correct one.");
window.location.href="otp.jsp";
<%}
else if (ms.equals("PasswordSendToMail"))
{%>
alert("Your Website Password has sent to your mail id.");
window.location.href="login.jsp";
<%}
}
catch(Exception e)
{
e.printStackTrace();
}
%>
</script>
</body>
</html>