login.jsp 1.0 KB

12345678910111213141516171819202122232425
  1. <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
  2. <%@ page import="org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter" %>
  3. <%@ page import="org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter" %>
  4. <%@ page import="org.springframework.security.core.AuthenticationException" %>
  5. <html>
  6. <head>
  7. <title>CUSTOM SPRING SECURITY LOGIN</title>
  8. </head>
  9. <body onload="document.f.username.focus();">
  10. <h1>CUSTOM SPRING SECURITY LOGIN</h1>
  11. <form name="f" action="<c:url value='login'/>" method="POST">
  12. <table>
  13. <tr><td>User:</td><td><input type='text' name='username' /></td></tr>
  14. <tr><td>Password:</td><td><input type='password' name='password'/></td></tr>
  15. <tr><td><input type="checkbox" name="remember-me"></td><td>Don't ask for my password for two weeks</td></tr>
  16. <tr><td colspan='2'><input name="submit" type="submit"></td></tr>
  17. <tr><td colspan='2'><input name="reset" type="reset"></td></tr>
  18. </table>
  19. </form>
  20. </body>
  21. </html>