-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.jsp
50 lines (45 loc) · 1.46 KB
/
index.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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!--Import some libraries that have classes that we need -->
<%@ page import="java.io.*,java.util.*,java.sql.*,java.text.*"%>
<%@ page import="javax.servlet.http.*,javax.servlet.*"%>
<!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>Welcome to Ride Share</title>
</head>
<body>
Welcome to the Ride Share website (TEAM 14)
<!-- Login page for application -->
<br>
<br>
<form method="post" action="verifyUser.jsp">
<table>
<tr>
<td>Username:</td><td><input type="text" name="username">
</td>
</tr>
<tr>
<td>Password:</td><td><input type="password" name="password"></td>
</tr>
</table>
<input type="submit" value="Login">
<%
//Invalid username or password
if(request.getAttribute("loginFailed") != null){
out.print(request.getAttribute("loginFailed"));
}
//User is banned
if(request.getAttribute("banned") != null){
out.print(request.getAttribute("banned"));
}
%>
</form>
<br>
<form method="post" action="register.jsp"><input type="submit" value="Register"></form>
<form method="post" action="forgot.jsp"><input type="submit" value="Reset Password"></form>
<br>
[<a href="https://github.com/NitantP/Ride-Share">GitHub Repository</a>]
</body>
</html>