View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-demos/restyling/trunk/site/src/main/webapp/WEB-INF/web.xml
Revision: 48447
Committed: Thu Jan 29 08:41:31 2015 UTC (7 years, 5 months ago) by mdenburger
Content type: text/xml
File size: 10274 byte(s)
Log Message:
CMS7-8371: merge changes from archetypes trunk, including the rename of web resources to web files

File Contents

# User Rev Content
1 mdenburger 46769 <?xml version="1.0" encoding="UTF-8"?>
2     <web-app xmlns="http://java.sun.com/xml/ns/javaee"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 mdenburger 48447 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
5     version="3.0"
6 mdenburger 46769 id="site">
7    
8     <display-name>Restyling Demo site</display-name>
9     <description>Restyling Demo site</description>
10    
11     <jsp-config>
12     <jsp-property-group>
13     <url-pattern>*.jsp</url-pattern>
14     <page-encoding>UTF-8</page-encoding>
15     <trim-directive-whitespaces>true</trim-directive-whitespaces>
16     </jsp-property-group>
17     <jsp-property-group>
18     <url-pattern>*.jspf</url-pattern>
19     <page-encoding>UTF-8</page-encoding>
20     <trim-directive-whitespaces>true</trim-directive-whitespaces>
21     </jsp-property-group>
22     <jsp-property-group>
23     <url-pattern>*.tag</url-pattern>
24     <page-encoding>UTF-8</page-encoding>
25     <trim-directive-whitespaces>true</trim-directive-whitespaces>
26     </jsp-property-group>
27     <jsp-property-group>
28     <url-pattern>*.tagf</url-pattern>
29     <page-encoding>UTF-8</page-encoding>
30     <trim-directive-whitespaces>true</trim-directive-whitespaces>
31     </jsp-property-group>
32     </jsp-config>
33    
34     <!-- I18N -->
35     <context-param>
36     <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
37     <param-value>messages</param-value>
38     </context-param>
39     <!--
40     HST-2 Content Beans Annotation Configuration. You can configure it
41     with either xml or classes location filter. For example, if the
42     parameter value is set to '/WEB-INF/beans-annotated-classes.xml',
43     all the annotated bean classes will be loaded from the xml
44     configuration file. If the parameter value is set to
45     'classpath*:org/hippoecm/hst/demo/beans/**/*.class', all the
46     annotated bean classes will be automatically scanned from the
47     location. If the context parameter is not configured,
48     '/WEB-INF/beans-annotated-classes.xml' will be used by default.
49     Also, you can configure multiple classpath resource location filters
50     separated by comma or white spaces. For example, you can set the
51     parameter value to
52     'classpath*:org/hippoecm/hst/demo/beans/**/*.class,
53     classpath*:org/hippoecm/hst/demo2/beans/**/*.class' to specify two
54     or more different location filters.
55     -->
56     <context-param>
57     <param-name>hst-beans-annotated-classes</param-name>
58     <param-value>classpath*:org/onehippo/restyling/demo/**/*.class
59     ,classpath*:org/onehippo/**/*.class
60     ,classpath*:com/onehippo/**/*.class
61     </param-value>
62     </context-param>
63    
64     <filter>
65     <filter-name>CharacterEncodingFilter</filter-name>
66     <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
67     <init-param>
68     <param-name>encoding</param-name>
69     <param-value>UTF-8</param-value>
70     </init-param>
71     <init-param>
72     <param-name>forceEncoding</param-name>
73     <param-value>true</param-value>
74     </init-param>
75     </filter>
76    
77     <filter>
78     <filter-name>XSSUrlFilter</filter-name>
79     <filter-class>org.hippoecm.hst.container.XSSUrlFilter</filter-class>
80     </filter>
81    
82     <filter>
83     <filter-name>HstFilter</filter-name>
84     <filter-class>org.hippoecm.hst.container.HstFilter</filter-class>
85     </filter>
86    
87     <filter-mapping>
88     <filter-name>CharacterEncodingFilter</filter-name>
89     <url-pattern>/*</url-pattern>
90     </filter-mapping>
91    
92     <filter-mapping>
93     <filter-name>XSSUrlFilter</filter-name>
94     <url-pattern>/*</url-pattern>
95     </filter-mapping>
96    
97     <filter-mapping>
98     <filter-name>HstFilter</filter-name>
99     <url-pattern>/*</url-pattern>
100     </filter-mapping>
101    
102     <!-- Listener that dispatches http session events to ComponentManager. -->
103     <listener>
104     <listener-class>org.hippoecm.hst.site.container.session.HttpSessionEventPublisher</listener-class>
105     </listener>
106    
107     <servlet>
108     <servlet-name>HstSiteConfigServlet</servlet-name>
109     <servlet-class>org.hippoecm.hst.site.container.HstSiteConfigServlet</servlet-class>
110     <!--
111     If 'hst-config-refresh-delay' parameter is greater than 0,
112     then the HST configuration file changes will be monitored to re-initialize the HST Container.
113     The value is in ms. If set to 0 or missing, the re-initialization option on configuration file changes is not turned on.
114     Default below is set to 3 sec
115     -->
116     <init-param>
117     <param-name>hst-config-refresh-delay</param-name>
118     <param-value>3000</param-value>
119     </init-param>
120     <load-on-startup>1</load-on-startup>
121     </servlet>
122    
123     <servlet>
124     <servlet-name>BinariesServlet</servlet-name>
125     <servlet-class>org.hippoecm.hst.servlet.BinariesServlet</servlet-class>
126     </servlet>
127    
128     <servlet>
129     <servlet-name>freemarker</servlet-name>
130     <servlet-class>org.hippoecm.hst.servlet.HstFreemarkerServlet</servlet-class>
131     <!-- FreemarkerServlet settings: -->
132     <init-param>
133     <param-name>TemplatePath</param-name>
134     <param-value>/</param-value>
135     </init-param>
136     <init-param>
137     <param-name>ContentType</param-name>
138     <param-value>text/html; charset=UTF-8</param-value>
139     <!-- Forces UTF-8 output encoding! -->
140     </init-param>
141     <!--
142 mdenburger 47418 'loggerLibrary' determines which logger library Freemarker uses to log errors.
143     Available options are 'auto', 'none', 'java', 'avalon', 'log4j', 'commons', and 'slf4j'.
144     The default is 'none', which will suppress all exceptions logged by Freemarker.
145     Note that the HstFreemarkerServlet will still log the Freemarker error in all re-thrown exceptions.
146 mdenburger 46769 <init-param>
147 mdenburger 47418 <param-name>loggerLibrary</param-name>
148     <param-value>none</param-value>
149     </init-param>
150     -->
151     <!--
152     'template_exception_handler' determines what Freemarker does when it encounters an error:
153     - "ignore" lets Freemarker log an exception and then continue rendering.
154     - "debug" lets Freemarker log a stack trace, stops rendering and and re-throws the exception.
155     - "rethrow" (the default) does not let Freemarker log a stack trace, stops rendering and re-throws the exception.
156     The Freemarker error message in re-thrown exceptions will also be logged by the HstFreemarkerServlet.
157     <init-param>
158 mdenburger 46769 <param-name>template_exception_handler</param-name>
159 mdenburger 47418 <param-value>rethrow</param-value>
160 mdenburger 46769 </init-param>
161     -->
162     <load-on-startup>200</load-on-startup>
163     </servlet>
164    
165     <servlet>
166     <servlet-name>TemplateComposerResourceServlet</servlet-name>
167     <servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class>
168     <init-param>
169     <param-name>jarPathPrefix</param-name>
170     <param-value>/META-INF/hst/pagecomposer</param-value>
171     </init-param>
172     </servlet>
173    
174     <servlet>
175     <servlet-name>LoginServlet</servlet-name>
176     <servlet-class>org.hippoecm.hst.security.servlet.LoginServlet</servlet-class>
177     </servlet>
178    
179     <servlet>
180     <servlet-name>SecurityResourceServlet</servlet-name>
181     <servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class>
182     <init-param>
183     <param-name>jarPathPrefix</param-name>
184     <param-value>/META-INF/hst/security</param-value>
185     </init-param>
186     </servlet>
187    
188     <servlet>
189     <servlet-name>HstResourceServlet</servlet-name>
190     <servlet-class>org.onehippo.cms7.utilities.servlet.ResourceServlet</servlet-class>
191     <init-param>
192     <param-name>jarPathPrefix</param-name>
193     <param-value>/META-INF/web-resources</param-value>
194     </init-param>
195     </servlet>
196    
197     <servlet>
198     <servlet-name>PingServlet</servlet-name>
199     <servlet-class>org.hippoecm.hst.servlet.HstPingServlet</servlet-class>
200     </servlet>
201    
202     <servlet-mapping>
203     <servlet-name>BinariesServlet</servlet-name>
204     <url-pattern>/binaries/*</url-pattern>
205     </servlet-mapping>
206    
207     <servlet-mapping>
208     <servlet-name>freemarker</servlet-name>
209     <url-pattern>*.ftl</url-pattern>
210     </servlet-mapping>
211    
212     <servlet-mapping>
213     <servlet-name>TemplateComposerResourceServlet</servlet-name>
214     <url-pattern>/hst/pagecomposer/sources/*</url-pattern>
215     </servlet-mapping>
216    
217     <servlet-mapping>
218     <servlet-name>LoginServlet</servlet-name>
219     <url-pattern>/login/*</url-pattern>
220     </servlet-mapping>
221    
222     <servlet-mapping>
223     <servlet-name>SecurityResourceServlet</servlet-name>
224     <url-pattern>/login/hst/security/*</url-pattern>
225     </servlet-mapping>
226    
227     <servlet-mapping>
228     <servlet-name>HstResourceServlet</servlet-name>
229     <url-pattern>/resources/*</url-pattern>
230     </servlet-mapping>
231    
232     <servlet-mapping>
233     <servlet-name>PingServlet</servlet-name>
234     <url-pattern>/ping/*</url-pattern>
235     </servlet-mapping>
236    
237     <security-constraint>
238     <web-resource-collection>
239     <web-resource-name>Login</web-resource-name>
240     <url-pattern>/login/resource</url-pattern>
241     </web-resource-collection>
242     <auth-constraint>
243     <role-name>everybody</role-name>
244     </auth-constraint>
245     </security-constraint>
246    
247     <login-config>
248     <auth-method>FORM</auth-method>
249     <realm-name>HSTSITE</realm-name>
250     <form-login-config>
251     <form-login-page>/login/login</form-login-page>
252     <form-error-page>/login/error</form-error-page>
253     </form-login-config>
254     </login-config>
255    
256     <security-role>
257     <description>Default role of Hippo Repository</description>
258     <role-name>everybody</role-name>
259     </security-role>
260    
261     <error-page>
262     <error-code>400</error-code>
263     <location>/WEB-INF/jsp/errorpages/ErrorPage400.jsp</location>
264     </error-page>
265    
266     <error-page>
267     <error-code>401</error-code>
268     <location>/WEB-INF/jsp/errorpages/ErrorPage401.jsp</location>
269     </error-page>
270    
271     <error-page>
272     <error-code>403</error-code>
273     <location>/WEB-INF/jsp/errorpages/ErrorPage403.jsp</location>
274     </error-page>
275    
276     <error-page>
277     <error-code>404</error-code>
278     <location>/WEB-INF/jsp/errorpages/ErrorPage404.jsp</location>
279     </error-page>
280    
281     <error-page>
282     <error-code>500</error-code>
283     <location>/WEB-INF/jsp/errorpages/ErrorPage500.jsp</location>
284     </error-page>
285    
286     <error-page>
287     <exception-type>java.lang.Exception</exception-type>
288     <location>/WEB-INF/jsp/errorpages/ErrorPage500.jsp</location>
289     </error-page>
290    
291     <env-entry>
292     <env-entry-name>logging/contextName</env-entry-name>
293     <env-entry-type>java.lang.String</env-entry-type>
294     <env-entry-value>site</env-entry-value>
295     </env-entry>
296    
297     </web-app>
298    

Properties

Name Value
svn:eol-style native
svn:keywords Id