-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathweb.xml
executable file
·84 lines (73 loc) · 2.79 KB
/
web.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ © 2023 iamfortress.net
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>Wicket Sample Project</display-name>
<filter>
<filter-name>org.wicketsample</filter-name>
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>org.wicketsample.WicketApplication</param-value>
</init-param>
</filter>
<!-- Needed for wicket framework to have control of things. -->
<filter-mapping>
<filter-name>org.wicketsample</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<!-- TODO STEP: uncomment to enable fortress spring bean injection && Java EE Security: -->
<!--
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<security-constraint>
<web-resource-collection>
<web-resource-name>app</web-resource-name>
<url-pattern>/wicket/bookmarkable/org.wicketsample.LogoutPage</url-pattern>
</web-resource-collection>
</security-constraint>
<security-constraint>
<display-name>Wicket Sample Security Constraints</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/wicket/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>wsBaseRole</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>FortressRealm</realm-name>
<form-login-config>
<form-login-page>/login/login.html</form-login-page>
<form-error-page>/login/error.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>wsBaseRole</role-name>
</security-role>
<error-page>
<error-code>403</error-code>
<location>/login/unauthorized.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/login/pagenotfound.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/login/unexpected.html</location>
</error-page>
-->
</web-app>