Created
January 3, 2018 18:14
-
-
Save darbyluv2code/55b87cf34cecfc35ff2b451696abc35d to your computer and use it in GitHub Desktop.
fancy-login.jsp updates (see line 57)
This file contains hidden or 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
| <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> | |
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <title>Login Page</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Reference Bootstrap files --> | |
| <link rel="stylesheet" | |
| href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
| </head> | |
| <body> | |
| <div> | |
| <div id="loginbox" style="margin-top: 50px;" | |
| class="mainbox col-md-3 col-md-offset-2 col-sm-6 col-sm-offset-2"> | |
| <div class="panel panel-info"> | |
| <div class="panel-heading"> | |
| <div class="panel-title">Sign In</div> | |
| </div> | |
| <div style="padding-top: 30px" class="panel-body"> | |
| <!-- Login Form --> | |
| <form:form action="${pageContext.request.contextPath}/authenticateTheUser" | |
| method="POST" class="form-horizontal"> | |
| <!-- Place for messages: error, alert etc ... --> | |
| <div class="form-group"> | |
| <div class="col-xs-15"> | |
| <div> | |
| <!-- Check for login error --> | |
| <c:if test="${param.error != null}"> | |
| <div class="alert alert-danger col-xs-offset-1 col-xs-10"> | |
| Invalid username and password. | |
| </div> | |
| </c:if> | |
| <c:if test="${param.logout != null}"> | |
| <div class="alert alert-success col-xs-offset-1 col-xs-10"> | |
| You have been logged out. | |
| </div> | |
| </c:if> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- User name --> | |
| <div style="margin-bottom: 25px" class="input-group"> | |
| <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span> | |
| <input type="text" name="username" placeholder="username" class="form-control"> | |
| </div> | |
| <!-- Password --> | |
| <div style="margin-bottom: 25px" class="input-group"> | |
| <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span> | |
| <input type="password" name="password" placeholder="password" class="form-control" > | |
| </div> | |
| <!-- Login/Submit Button --> | |
| <div style="margin-top: 10px" class="form-group"> | |
| <div class="col-sm-6 controls"> | |
| <button type="submit" class="btn btn-success">Login</button> | |
| </div> | |
| </div> | |
| </form:form> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment