hello.jsp 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <%@ include file="/WEB-INF/jsp/include.jsp" %>
  2. <html>
  3. <head><title>Contacts Security Demo</title></head>
  4. <body>
  5. <h1>Contacts Security Demo</h1>
  6. <p>This is a very simple application to demonstrate the Acegi Security System for Spring.
  7. The application manages contacts, partitioned based on the user that owns them.
  8. Users may only manage their own contacts, and only users with ROLE_SUPERVISOR
  9. are allowed to delete their contacts. It also demonstrates how to configure
  10. server-side secure objects so they can only be accessed via a public facade.
  11. <P>If you deployed the contacts-container-adapter.war file, the application
  12. automatically extracts the principal from the web container (which should be
  13. configured with a suitable Acegi Security System for Spring adapter). If
  14. you're using the standard contacts.war file, the application is entirely
  15. self-contained and you don't need to do anything special with your web
  16. container. If you're using the contacts-cas.war file, please review the
  17. setup in samples/contacts/etc/cas/applicationContext.xml for your CAS server
  18. and if necessary rebuild using the Contacts application's build.xml.
  19. <P>This application also demonstrates a public method, which is used to select
  20. the random contact that is shown below:
  21. <P>
  22. <code>
  23. <c:out value="${contact}"/>
  24. </code>
  25. <p>
  26. <p><A HREF="<c:url value="secure/index.htm"/>">Manage</a>
  27. <A HREF="<c:url value="secure/debug.jsp"/>">Debug</a>
  28. </body>
  29. </html>