<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>PlzDo.it</title>
<base href="${pageContext.request.contextPath}">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<%
String uname=(String) request.getSession().getAttribute("uid");
if(uname!=null){
System.out.println("UID =" +uname);
response.sendRedirect("UserHome.jsp");
return;
}
%>
<br>
<br>
<section class="container">
<div class="login">
<form method="post" action="LoginServlet">
<p>${message}</p>
<c:remove var="message" scope="session" />
<p>${errMsg}</p>
<c:remove var="errMsg" scope="session" />
<p><input type="text" name="name" value="" placeholder="Username"></p>
<p><input type="password" name="password" value="" placeholder="Password"></p>
<p class="remember_me">
<label>
<input type="checkbox" name="remember_me" id="remember_me">
Remember me on this computer
</label>
</p>
<p class="submit">
<input type="submit" value="Login"></p>
</form>
<form action="/CreateUser.jsp" method="post">
<p class="submitt">
<input type="submit" value="Sign Up">
</p>
</form>
</div>
<div class="login-help">
<p>Forgot your password? <a href="index.html">Click here to reset it</a>.</p>
</div>
</section>
</body>
</html>