Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=utf-8"
- pageEncoding="utf-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%>
- <html>
- <head>
- <title>Authorization Page</title>
- <style type="text/css">
- body {
- background: #63bad8 50% 0px repeat-x;
- text-align: center;
- }
- div.main {
- margin: 50px auto;
- padding: 0 0 0 0;
- width: 340px;
- border-color: black;
- }
- </style>
- </head>
- <body>
- <div class="main">
- <h1
- style="background-color: #3F3F3F; color: white; padding: 0px; margin: 0px;">Authorization</h1>
- <div
- style="background: white; border: black; padding: 0px; margin: 0px;"
- align="center" dir="ltr">
- <c:if test="${not empty error}">
- <font color="red"> Incorrect login or password. Try again.</font>
- </c:if>
- <form name="f" action="<c:url value='j_spring_security_check'/>"
- method="POST" style="background: white;">
- <table>
- <tr>
- <td style="font-style: oblique">Username:</td>
- <td><input type='text' name='j_username'
- value='<c:if test="${not empty error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>' />
- </td>
- </tr>
- <tr>
- <td style="font-style: oblique">Password:</td>
- <td><input type='password' name='j_password'>
- </td>
- </tr>
- <tr align="center">
- <td colspan='2' align="center">
- <input name="submit" value="Login" type="submit">
- <input name="reset" value="Reset" type="reset">
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement