PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/scalate-sample-precompile/src/main/webapp/WEB-INF/web.xml

http://github.com/scalate/scalate
XML | 49 lines | 25 code | 5 blank | 19 comment | 0 complexity | fdca635d95b3036b9fc4075743f1c25a MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--
 3
 4    Copyright (C) 2009-2011 the original author or authors.
 5    See the notice.md file distributed with this work for additional
 6    information regarding copyright ownership.
 7
 8    Licensed under the Apache License, Version 2.0 (the "License");
 9    you may not use this file except in compliance with the License.
10    You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20-->
21<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
23	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24	version="2.5">
25
26  <display-name>Scalate Precompile Sample</display-name>
27
28  <description>
29    Scalate Sample
30  </description>
31
32  <filter>
33    <filter-name>TemplateEngineFilter</filter-name>
34    <filter-class>org.fusesource.scalate.servlet.TemplateEngineFilter</filter-class>
35  </filter>
36  <filter-mapping>
37    <filter-name>TemplateEngineFilter</filter-name>
38    <url-pattern>/*</url-pattern>
39  </filter-mapping>
40
41  <welcome-file-list>
42    <welcome-file>index.jade</welcome-file>
43  </welcome-file-list>
44
45  <error-page>
46    <error-code>500</error-code>
47    <location>/WEB-INF/scalate/errors/500.scaml</location>
48  </error-page>
49</web-app>