index.jsp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
  3. xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">
  4. <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
  5. <jsp:output omit-xml-declaration="true" />
  6. <jsp:output doctype-root-element="HTML"
  7. doctype-system="about:legacy-compat" />
  8. <html lang="en">
  9. <head>
  10. <title>Hello Security</title>
  11. <c:url var="faviconUrl" value="/resources/img/favicon.ico"/>
  12. <link rel="icon" type="image/x-icon" href="${faviconUrl}"/>
  13. <c:url var="bootstrapUrl" value="/resources/css/bootstrap.css"/>
  14. <link href="${bootstrapUrl}" rel="stylesheet"></link>
  15. <c:url var="bootstrapResponsiveUrl" value="/resources/css/bootstrap-responsive.css"/>
  16. <link href="${bootstrapResponsiveUrl}" rel="stylesheet"></link>
  17. <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  18. <!--[if lt IE 9]>
  19. <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  20. <![endif]-->
  21. </head>
  22. <body>
  23. <div class="container">
  24. <h1>This is secured!</h1>
  25. <p>
  26. Hello <b>${pageContext.request.remoteUser}</b>
  27. </p>
  28. <c:url var="logoutUrl" value="/logout"/>
  29. <form class="form-inline" action="${logoutUrl}" method="post">
  30. <input type="submit" value="Log out" />
  31. <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
  32. </form>
  33. </div>
  34. </body>
  35. </html>
  36. </jsp:root>