Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page isELIgnored="false"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <html>
- <head>
- <title>Login Page</title>
- <style>
- .errorblock {
- color: #ff0000;
- background-color: #ffEEEE;
- border: 3px solid #ff0000;
- padding: 8px;
- margin: 16px;
- }
- </style>
- </head>
- <body onload='document.f.j_username.focus();'>
- <c:if test="${not empty error}">
- <div class="errorblock">
- Your login attempt was not successful, try again.<br /> Caused :
- ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
- </div>
- </c:if>
- <fieldset style="margin:auto; width:25%; background-color: #eee;">
- <legend><b>CAT Login:</b></legend>
- <form name='f' action="<c:url value='j_spring_security_check' />" method='POST'>
- <table>
- <tr>
- <td>User:</td>
- <td><input type='text' name='j_username' value=''></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input type='password' name='j_password' /></td>
- </tr>
- <tr>
- <td>
- <input name="submit" type="submit" value="Login"/>
- </td>
- </tr>
- </table>
- </form>
- </fieldset>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement