1. <%@ page isELIgnored="false"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <html>
  4. <head>
  5. <title>Login Page</title>
  6. <style>
  7. .errorblock {
  8.     color: #ff0000;
  9.     background-color: #ffEEEE;
  10.     border: 3px solid #ff0000;
  11.     padding: 8px;
  12.     margin: 16px;
  13. }
  14. </style>
  15. </head>
  16. <body onload='document.f.j_username.focus();'>
  17.     <c:if test="${not empty error}">
  18.         <div class="errorblock">
  19.             Your login attempt was not successful, try again.<br /> Caused :
  20.             ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
  21.         </div>
  22.     </c:if>
  23.     <fieldset style="margin:auto; width:25%; background-color: #eee;">
  24.         <legend><b>CAT Login:</b></legend>
  25.        
  26.         <form name='f' action="<c:url value='j_spring_security_check' />" method='POST'>   
  27.             <table>
  28.                 <tr>
  29.                     <td>User:</td>
  30.                     <td><input type='text' name='j_username' value=''></td>
  31.                 </tr>
  32.                 <tr>
  33.                     <td>Password:</td>
  34.                     <td><input type='password' name='j_password' /></td>
  35.                 </tr>
  36.                 <tr>
  37.                     <td>
  38.                         <input name="submit" type="submit" value="Login"/> 
  39.                     </td>
  40.                 </tr>
  41.                
  42.             </table>
  43.         </form>
  44.     </fieldset>
  45. </body>
  46. </html>