login.jsp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %>
  2. <html>
  3. <head>
  4. <title>Login</title>
  5. </head>
  6. <body>
  7. <h1>Login</h1>
  8. <P>If you've used the standard springsecurity.xml, try these users:
  9. <P>
  10. <P>username <b>marissa</b>, password <b>koala</b> (granted ROLE_SUPERVISOR)
  11. <P>username <b>dianne</b>, password <b>emu</b> (not a supervisor)
  12. <p>username <b>scott</b>, password <b>wombat</b> (not a supervisor)
  13. <p>
  14. <%-- this form-login-page form is also used as the
  15. form-error-page to ask for a login again.
  16. --%>
  17. <c:if test="${not empty param.login_error}">
  18. <font color="red">
  19. Your login attempt was not successful, try again.
  20. </font>
  21. </c:if>
  22. <form action="<c:url value='j_security_check'/>" method="POST">
  23. <table>
  24. <tr><td>User:</td><td><input type='text' name='j_username'></td></tr>
  25. <tr><td>Password:</td><td><input type='password' name='j_password'></td></tr>
  26. <tr><td colspan='2'><input name="submit" type="submit"></td></tr>
  27. <tr><td colspan='2'><input name="reset" type="reset"></td></tr>
  28. </table>
  29. <!--
  30. - The j_uri is a Resin requirement (ignored by other containers)
  31. -->
  32. <input type='hidden' name='j_uri' value='/secure/index.htm'/>
  33. </form>
  34. </body>
  35. </html>