瀏覽代碼

Corrected welcome page to display appropriate information depending on WAR being used.

Ben Alex 21 年之前
父節點
當前提交
136c27aff3
共有 1 個文件被更改,包括 10 次插入3 次删除
  1. 10 3
      samples/contacts/war/WEB-INF/jsp/hello.jsp

+ 10 - 3
samples/contacts/war/WEB-INF/jsp/hello.jsp

@@ -7,11 +7,18 @@
 <p>This is a very simple application to demonstrate the Acegi Security System for Spring.
 <p>This is a very simple application to demonstrate the Acegi Security System for Spring.
 The application manages contacts, partitioned based on the user that owns them.
 The application manages contacts, partitioned based on the user that owns them.
 Users may only manage their own contacts, and only users with ROLE_SUPERVISOR
 Users may only manage their own contacts, and only users with ROLE_SUPERVISOR
-are allowed to delete their contacts. The application automatically extracts
-the principal from the web container (which should be configured with a 
-suitable Acegi Security System for Spring adapter). It also demonstrates how to configure
+are allowed to delete their contacts. It also demonstrates how to configure
 server-side secure objects so they can only be accessed via a public facade.
 server-side secure objects so they can only be accessed via a public facade.
 
 
+<P>If you deployed the contacts-container-adapter.war file, the application
+automatically extracts the principal from the web container (which should be 
+configured with a suitable Acegi Security System for Spring adapter). If
+you're using the standard contacts.war file, the application is entirely
+self-contained and you don't need to do anything special with your web
+container. If you're using the contacts-cas.war file, please review the
+setup in samples/contacts/etc/cas/applicationContext.xml for your CAS server
+and if necessary rebuild using the Contacts application's build.xml.
+
 <P>This application also demonstrates a public method, which is used to select
 <P>This application also demonstrates a public method, which is used to select
 the random contact that is shown below:
 the random contact that is shown below:
 <P>
 <P>