1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <web-app xmlns="http://java.sun.com/xml/ns/javaee"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
7 <display-name>cdi</display-name>
10 There are three means to configure Wickets configuration mode and they are
11 tested in the order given.
12 1) A system property: -Dwicket.configuration
13 2) servlet specific <init-param>
14 3) context specific <context-param>
15 The value might be either "development" (reloading when templates change)
16 or "deployment". If no configuration is found, "development" is the default.
20 <filter-name>authentication</filter-name>
21 <filter-class>org.wamblee.photos.security.AuthenticationFilter</filter-class>
23 <param-name>loginpage</param-name>
24 <param-value>/login.jsp</param-value>
26 <!-- each authenticated user is assigned to the gruop ALL in the security realm configuration -->
28 <param-name>role</param-name>
29 <param-value>ALL</param-value>
31 <!-- defines the resource URLs for which no authentication is required -->
33 <param-name>resources</param-name>
34 <param-value>/resources</param-value>
39 <filter-name>photos</filter-name>
40 <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
42 <param-name>applicationClassName</param-name>
43 <param-value>org.wamblee.photos.wicket.WicketApplication</param-value>
46 <param-name>configuration</param-name>
47 <param-value>development</param-value>
52 <filter-name>authentication</filter-name>
53 <url-pattern>/*</url-pattern>
56 <filter-name>photos</filter-name>
57 <url-pattern>/*</url-pattern>
61 <web-resource-collection>
62 <web-resource-name>resources</web-resource-name>
63 <url-pattern>/resources/*</url-pattern>
64 </web-resource-collection>
65 </security-constraint>
67 <web-resource-collection>
68 <web-resource-name>securedaccess</web-resource-name>
69 <url-pattern>/*</url-pattern>
70 </web-resource-collection>
72 <role-name>ALL</role-name>
73 <role-name>users</role-name>
75 </security-constraint>
78 <auth-method>FORM</auth-method>
79 <realm-name>PhotoXChangeRealm</realm-name>
81 <form-login-page>/login.jsp</form-login-page>
82 <form-error-page>/loginError.jsp</form-error-page>
87 <error-code>404</error-code>
88 <!-- view will redirect to login if the user is not logged in -->
89 <location>/404.jsp</location>
93 <session-timeout>10</session-timeout>
97 <welcome-file>login.jsp</welcome-file>
101 <role-name>ALL</role-name>