質問編集履歴
1
kousin
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,135 @@
|
|
83
83
|
【質問】
|
84
84
|
|
85
85
|
例外が生じず、うまくいく方法があるば教えてくれるとうれしいです。
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
【追記】
|
92
|
+
|
93
|
+
**web.xml(全文)**
|
94
|
+
|
95
|
+
```xml
|
96
|
+
|
97
|
+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
98
|
+
|
99
|
+
xmlns="http://java.sun.com/xml/ns/javaee"
|
100
|
+
|
101
|
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
102
|
+
|
103
|
+
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
104
|
+
|
105
|
+
version="2.5">
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<context-param>
|
110
|
+
|
111
|
+
<param-name>contextConfigLocation</param-name>
|
112
|
+
|
113
|
+
<param-value>classpath:root-context.xml</param-value>
|
114
|
+
|
115
|
+
</context-param>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<filter>
|
120
|
+
|
121
|
+
<filter-name>characterEncodingFileter</filter-name>
|
122
|
+
|
123
|
+
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
124
|
+
|
125
|
+
<init-param>
|
126
|
+
|
127
|
+
<param-name>encoding</param-name>
|
128
|
+
|
129
|
+
<param-value>UTF-8</param-value>
|
130
|
+
|
131
|
+
</init-param>
|
132
|
+
|
133
|
+
<init-param>
|
134
|
+
|
135
|
+
<param-name>forceEncoding</param-name>
|
136
|
+
|
137
|
+
<param-value>true</param-value>
|
138
|
+
|
139
|
+
</init-param>
|
140
|
+
|
141
|
+
</filter>
|
142
|
+
|
143
|
+
<filter-mapping>
|
144
|
+
|
145
|
+
<filter-name>characterEncodingFileter</filter-name>
|
146
|
+
|
147
|
+
<url-pattern>/*</url-pattern>
|
148
|
+
|
149
|
+
</filter-mapping>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<listener>
|
154
|
+
|
155
|
+
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
156
|
+
|
157
|
+
</listener>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<servlet>
|
162
|
+
|
163
|
+
<servlet-name>dispatcher</servlet-name>
|
164
|
+
|
165
|
+
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
166
|
+
|
167
|
+
<init-param>
|
168
|
+
|
169
|
+
<param-name>contextConfigLocation</param-name>
|
170
|
+
|
171
|
+
<param-value></param-value>
|
172
|
+
|
173
|
+
</init-param>
|
174
|
+
|
175
|
+
<load-on-startup>1</load-on-startup>
|
176
|
+
|
177
|
+
</servlet>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<servlet-mapping>
|
182
|
+
|
183
|
+
<servlet-name>dispatcher</servlet-name>
|
184
|
+
|
185
|
+
<url-pattern>/</url-pattern>
|
186
|
+
|
187
|
+
</servlet-mapping>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<!-- この部分が問題 -->
|
192
|
+
|
193
|
+
<jsp-config>
|
194
|
+
|
195
|
+
<jsp-property-group>
|
196
|
+
|
197
|
+
<url-pattern>*.jsp</url-pattern>
|
198
|
+
|
199
|
+
<el-ignored>false</el-ignored>
|
200
|
+
|
201
|
+
<page-encoding>UTF-8</page-encoding>
|
202
|
+
|
203
|
+
<scripting-invalid>false</scripting-invalid>
|
204
|
+
|
205
|
+
<include-prelude>/WEB-INF/views/include.jsp</include-prelude>
|
206
|
+
|
207
|
+
</jsp-property-group>
|
208
|
+
|
209
|
+
</jsp-config>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</web-app>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
```
|