root/lang/java/slideboard/trunk/webapp/WEB-INF/web.xml @ 17162

Revision 17162, 5.2 kB (checked in by int128, 6 years ago)

tutorialのweb.xmlに合わせた

  • Property svn:mime-type set to text/plain
Line 
1<?xml version="1.0"?>
2
3<!--
4 * Copyright 2004-2006 the Seasar Foundation and the Others.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15 * either express or implied. See the License for the specific language
16 * governing permissions and limitations under the License.
17-->
18
19<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
20xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
22version="2.4">
23
24    <context-param>
25        <param-name>sastruts.VIEW_PREFIX</param-name>
26        <param-value>/WEB-INF/view</param-value>
27    </context-param>
28   
29    <filter>
30        <filter-name>encodingfilter</filter-name>
31        <filter-class>org.seasar.extension.filter.EncodingFilter</filter-class>
32        <init-param>
33            <param-name>encoding</param-name>
34            <param-value>UTF-8</param-value>
35        </init-param>
36    </filter>
37   
38    <filter>
39        <filter-name>requestDumpFilter</filter-name>
40        <filter-class>org.seasar.extension.filter.RequestDumpFilter</filter-class>
41    </filter>
42
43    <filter>
44        <filter-name>s2filter</filter-name>
45        <filter-class>org.seasar.framework.container.filter.S2ContainerFilter</filter-class>
46    </filter>
47
48    <filter>
49        <filter-name>hotdeployfilter</filter-name>
50        <filter-class>org.seasar.framework.container.hotdeploy.HotdeployFilter</filter-class>
51    </filter>
52
53    <filter>
54        <filter-name>routingfilter</filter-name>
55        <filter-class>org.seasar.struts.filter.RoutingFilter</filter-class>
56        <init-param>
57            <param-name>jspDirectAccess</param-name>
58            <param-value>false</param-value>
59        </init-param>
60    </filter>
61       
62    <filter-mapping>
63        <filter-name>encodingfilter</filter-name>
64        <url-pattern>/*</url-pattern>
65    </filter-mapping>
66   
67    <filter-mapping>
68        <filter-name>s2filter</filter-name>
69        <url-pattern>/*</url-pattern>
70        <dispatcher>REQUEST</dispatcher>
71        <dispatcher>FORWARD</dispatcher>
72        <dispatcher>INCLUDE</dispatcher>
73    </filter-mapping>
74
75    <filter-mapping>
76        <filter-name>hotdeployfilter</filter-name>
77        <url-pattern>/*</url-pattern>
78        <dispatcher>REQUEST</dispatcher>
79        <dispatcher>FORWARD</dispatcher>
80        <dispatcher>INCLUDE</dispatcher>
81    </filter-mapping>
82   
83    <filter-mapping>
84        <filter-name>routingfilter</filter-name>
85        <url-pattern>/*</url-pattern>
86        <dispatcher>REQUEST</dispatcher>
87    </filter-mapping>
88   
89<!--
90    <filter-mapping>
91        <filter-name>requestDumpFilter</filter-name>
92        <url-pattern>*.do</url-pattern>
93        <dispatcher>REQUEST</dispatcher>
94        <dispatcher>FORWARD</dispatcher>
95        <dispatcher>INCLUDE</dispatcher>
96    </filter-mapping>
97-->
98   
99    <servlet>
100        <servlet-name>action</servlet-name>
101        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
102        <init-param>
103            <param-name>config</param-name>
104            <param-value>/WEB-INF/struts-config.xml</param-value>
105        </init-param>
106        <init-param>
107            <param-name>configFactory</param-name>
108            <param-value>org.seasar.struts.config.S2ModuleConfigFactory</param-value>
109        </init-param>
110        <load-on-startup>1</load-on-startup>
111    </servlet>
112   
113    <servlet>
114        <servlet-name>s2container</servlet-name>
115        <servlet-class>org.seasar.framework.container.servlet.S2ContainerServlet</servlet-class>
116        <load-on-startup>2</load-on-startup>
117    </servlet>
118   
119    <servlet-mapping>
120        <servlet-name>action</servlet-name>
121        <url-pattern>*.do</url-pattern>
122    </servlet-mapping>
123
124    <servlet-mapping>
125        <servlet-name>s2container</servlet-name>
126        <url-pattern>/s2container</url-pattern>
127    </servlet-mapping>
128
129        <!--
130    <session-config>
131        <session-timeout>1</session-timeout>
132    </session-config>
133        -->
134
135<!--
136    <welcome-file-list>
137        <welcome-file>index.html</welcome-file>
138        <welcome-file>index.htm</welcome-file>
139        <welcome-file>index.jsp</welcome-file>
140    </welcome-file-list>
141-->
142
143    <!-- 
144    <error-page>
145        <exception-type>java.lang.Throwable</exception-type>
146        <location>/error/debug.jsp</location>
147    </error-page>
148
149    <error-page>
150        <error-code>400</error-code>
151        <location>/error/debug.jsp</location>
152    </error-page>
153    -->
154   
155    <jsp-config>
156        <jsp-property-group>
157                <url-pattern>*.jsp</url-pattern>
158                <el-ignored>false</el-ignored>
159                <page-encoding>UTF-8</page-encoding>
160                <scripting-invalid>false</scripting-invalid>
161                <include-prelude>/WEB-INF/view/common/common.jsp</include-prelude>
162        </jsp-property-group>
163    </jsp-config>
164</web-app>
Note: See TracBrowser for help on using the browser.