index.jsp 718 B

123456789101112131415161718192021
  1. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  2. <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
  3. <html>
  4. <head><title>Secure Page</title></head>
  5. <body>
  6. <h1>Secure Page</h1>
  7. This is a protected page. You can get to me if you've been remembered,
  8. or if you've authenticated this session.<br><br>
  9. <%if (request.isUserInRole("ROLE_SUPERVISOR")) { %>
  10. You are a supervisor! You can therefore see the <a href="extreme/index.jsp">extremely secure page</a>.<br><br>
  11. <% } %>
  12. <p><a href="../">Home</a>
  13. <form action="<c:url value="/logout"/>" method="post">
  14. <input type="submit" value="Logoff"/> (also clears any remember-me cookie)
  15. <security:csrfInput/>
  16. </form>
  17. </body>
  18. </html>