source: trunk/src/templates/war/web.xml @ 128

Last change on this file since 128 was 128, checked in by gav, 15 years ago

Installed templates with grails install-templates

File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<web-app version="2.4"
3         xmlns="http://java.sun.com/xml/ns/j2ee"
4         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
6    <display-name>/@grails.project.key@</display-name>
7
8
9    <context-param>
10        <param-name>contextConfigLocation</param-name>
11        <param-value>/WEB-INF/applicationContext.xml</param-value>
12    </context-param>
13
14    <context-param>
15        <param-name>webAppRootKey</param-name>
16        <param-value>@grails.project.key@</param-value>
17    </context-param>
18
19    <filter>
20        <filter-name>sitemesh</filter-name>
21        <filter-class>org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter</filter-class>
22    </filter>
23
24    <filter>
25        <filter-name>charEncodingFilter</filter-name>
26        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
27        <init-param>
28            <param-name>targetBeanName</param-name>
29            <param-value>characterEncodingFilter</param-value>
30        </init-param>
31        <init-param>
32            <param-name>targetFilterLifecycle</param-name>
33            <param-value>true</param-value>
34        </init-param>
35    </filter>
36
37    <filter-mapping>
38        <filter-name>charEncodingFilter</filter-name>
39        <url-pattern>/*</url-pattern>
40    </filter-mapping>
41
42    <filter-mapping>
43        <filter-name>sitemesh</filter-name>
44        <url-pattern>/*</url-pattern>
45    </filter-mapping>
46
47    <listener>
48        <listener-class>org.codehaus.groovy.grails.web.util.Log4jConfigListener</listener-class>
49    </listener>
50
51    <listener>
52        <listener-class>org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener</listener-class>
53    </listener>
54
55    <!-- Grails dispatcher servlet -->
56    <servlet>
57        <servlet-name>grails</servlet-name>
58        <servlet-class>org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet</servlet-class>
59        <load-on-startup>1</load-on-startup>
60    </servlet>
61
62    <!-- The Groovy Server Pages servlet -->
63    <servlet>
64        <servlet-name>gsp</servlet-name>
65        <servlet-class>org.codehaus.groovy.grails.web.pages.GroovyPagesServlet</servlet-class>
66    </servlet>
67
68    <servlet-mapping>
69        <servlet-name>gsp</servlet-name>
70        <url-pattern>*.gsp</url-pattern>
71    </servlet-mapping>
72
73    <welcome-file-list>
74        <!--
75        The order of the welcome pages is important.  JBoss deployment will
76        break if index.gsp is first in the list.
77        -->
78        <welcome-file>index.html</welcome-file>
79        <welcome-file>index.jsp</welcome-file>
80        <welcome-file>index.gsp</welcome-file>
81    </welcome-file-list>
82
83    <jsp-config>
84        <taglib>
85            <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
86            <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
87        </taglib>
88        <taglib>
89            <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
90            <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
91        </taglib>
92        <taglib>
93            <taglib-uri>http://www.springframework.org/tags</taglib-uri>
94            <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
95        </taglib>
96        <taglib>
97            <taglib-uri>http://grails.codehaus.org/tags</taglib-uri>
98            <taglib-location>/WEB-INF/tld/grails.tld</taglib-location>
99        </taglib>
100    </jsp-config>
101
102</web-app>
Note: See TracBrowser for help on using the repository browser.