Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
7051CEM_Web_Applications_and_AI/WebContent/login.jsp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
49 lines (47 sloc)
1.38 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="cfy.model.*"%> | |
<%@page import="java.util.*"%> | |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" | |
pageEncoding="ISO-8859-1"%> | |
<% | |
User auth = (User) request.getSession().getAttribute("auth"); | |
if (auth != null) { | |
response.sendRedirect("index.jsp"); | |
} | |
ArrayList<Cart> cart_list = (ArrayList<Cart>) session.getAttribute("cart-list"); | |
if (cart_list != null) { | |
request.setAttribute("cart_list", cart_list); | |
} | |
%> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<%@include file="/includes/head.jsp"%> | |
<title>Computer For You</title> | |
</head> | |
<body> | |
<%@include file="/includes/navbar.jsp"%> | |
<div class="container"> | |
<div class="card w-50 mx-auto my-5"> | |
<div class="card-header text-center">Login</div> | |
<div class="card-body"> | |
<form action="user-login" method="post"> | |
<div class="form-group"> | |
<label>Email address</label> | |
<input type="email" name="login-email" class="form-control" placeholder="Enter email"> | |
</div> | |
<div class="form-group"> | |
<label>Password</label> | |
<input type="password" name="login-password" class="form-control" placeholder="Password"> | |
</div> | |
<div class="text-center"> | |
<button type="submit" class="btn btn-primary">Login</button> | |
<br><br> | |
<a href="register.jsp">Click here to Register</a> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
<%@include file="/includes/footer.jsp"%> | |
</body> | |
</html> |