Advertisement
Guest User

Untitled

a guest
Nov 18th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.07 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=utf-8"
  2.     pageEncoding="utf-8"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%>
  5. <html>
  6. <head>
  7. <title>Authorization Page</title>
  8. <style type="text/css">
  9. body {
  10.     background: #63bad8 50% 0px repeat-x;
  11.     text-align: center;
  12. }
  13.  
  14. div.main {
  15.     margin: 50px auto;
  16.     padding: 0 0 0 0;
  17.     width: 340px;
  18.     border-color: black;
  19. }
  20. </style>
  21. </head>
  22. <body>
  23.     <div class="main">
  24.         <h1
  25.             style="background-color: #3F3F3F; color: white; padding: 0px; margin: 0px;">Authorization</h1>
  26.         <div
  27.             style="background: white; border: black; padding: 0px; margin: 0px;"
  28.             align="center" dir="ltr">
  29.             <c:if test="${not empty error}">
  30.                 <font color="red"> Incorrect login or password. Try again.</font>
  31.             </c:if>
  32.             <form name="f" action="<c:url value='j_spring_security_check'/>"
  33.                 method="POST" style="background: white;">
  34.                 <table>
  35.                     <tr>
  36.                         <td style="font-style: oblique">Username:</td>
  37.                         <td><input type='text' name='j_username'
  38.                             value='<c:if test="${not empty error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>' />
  39.                         </td>
  40.                     </tr>
  41.                     <tr>
  42.                         <td style="font-style: oblique">Password:</td>
  43.                         <td><input type='password' name='j_password'>
  44.                         </td>
  45.                     </tr>
  46.                     <tr align="center">
  47.                         <td colspan='2' align="center">
  48.                         <input name="submit" value="Login" type="submit">
  49.                         <input name="reset" value="Reset" type="reset">
  50.                         </td>
  51.                     </tr>
  52.                 </table>
  53.             </form>
  54.         </div>
  55.     </div>
  56. </body>
  57. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement