質問編集履歴
1
struts-config.xml の修正。サーバー起動時のエラーメッセージの追加。
test
CHANGED
File without changes
|
test
CHANGED
@@ -131,3 +131,241 @@
|
|
131
131
|
Tomcat6.0
|
132
132
|
|
133
133
|
java 6
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
遅くなりまして申し訳ございません
|
140
|
+
|
141
|
+
以下設定ファイルになります。
|
142
|
+
|
143
|
+
```struts-config.xml
|
144
|
+
|
145
|
+
コード
|
146
|
+
|
147
|
+
<?xml version="1.0" encoding="Shift_JIS" ?>
|
148
|
+
|
149
|
+
<!DOCTYPE struts-config PUBLIC
|
150
|
+
|
151
|
+
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
|
152
|
+
|
153
|
+
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
|
154
|
+
|
155
|
+
<struts-config>
|
156
|
+
|
157
|
+
<!-- ========================= Form Bean Definitions -->
|
158
|
+
|
159
|
+
<form-beans>
|
160
|
+
|
161
|
+
<form-bean name="HelloForm" type="hello.form.HelloForm" />
|
162
|
+
|
163
|
+
</form-beans>
|
164
|
+
|
165
|
+
<!-- ========================= Global Exception Definitions -->
|
166
|
+
|
167
|
+
<global-exceptions>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
</global-exceptions>
|
172
|
+
|
173
|
+
<!-- ========================= Global Forward Definitions -->
|
174
|
+
|
175
|
+
<global-forwards>
|
176
|
+
|
177
|
+
</global-forwards>
|
178
|
+
|
179
|
+
<!-- ========================= Action Mapping Definitions -->
|
180
|
+
|
181
|
+
<action-mappings>
|
182
|
+
|
183
|
+
<!-- 入力画面 -->
|
184
|
+
|
185
|
+
<action
|
186
|
+
|
187
|
+
attribute ="HelloForm"
|
188
|
+
|
189
|
+
input ="/jsp/who.jsp"
|
190
|
+
|
191
|
+
name ="HelloForm"
|
192
|
+
|
193
|
+
path ="/InputConfirmAction"
|
194
|
+
|
195
|
+
type ="hello.InputConfirmAction"
|
196
|
+
|
197
|
+
scope ="session"
|
198
|
+
|
199
|
+
validate ="true">
|
200
|
+
|
201
|
+
<forward name="success" path="/jsp/user.jsp"/>
|
202
|
+
|
203
|
+
<forward name="errors" path="/jsp/who.jsp"/>
|
204
|
+
|
205
|
+
</action>
|
206
|
+
|
207
|
+
<!-- 確認画面 -->
|
208
|
+
|
209
|
+
<action
|
210
|
+
|
211
|
+
input ="/jsp/user.jsp"
|
212
|
+
|
213
|
+
name ="HelloForm"
|
214
|
+
|
215
|
+
path ="/helloAction"
|
216
|
+
|
217
|
+
type ="hello.HelloAction"
|
218
|
+
|
219
|
+
scope ="session"
|
220
|
+
|
221
|
+
validate ="false">
|
222
|
+
|
223
|
+
<forward name="success" path="/jsp/Thanks.jsp"/>
|
224
|
+
|
225
|
+
</action>
|
226
|
+
|
227
|
+
</action-mappings>
|
228
|
+
|
229
|
+
<!-- ========================== Message Resources Definitions -->
|
230
|
+
|
231
|
+
<message-resources parameter="/WEB=INF/ApplicationResouce_ja"></message-resources>
|
232
|
+
|
233
|
+
<!-- ========================== Plug Ins Configuration -->
|
234
|
+
|
235
|
+
<!-- ========================== Tiles plugin -->
|
236
|
+
|
237
|
+
<!-- ========================== Validator plugin -->
|
238
|
+
|
239
|
+
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
|
240
|
+
|
241
|
+
<set-property
|
242
|
+
|
243
|
+
property="pathnames"
|
244
|
+
|
245
|
+
value="/org/apache/struts/validator/validator-rules.xml,
|
246
|
+
|
247
|
+
/WEB-INF/validation.xml"/>
|
248
|
+
|
249
|
+
</plug-in>
|
250
|
+
|
251
|
+
</struts-config>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
```
|
256
|
+
|
257
|
+
```以下サーバ起動時のエラーメッセージです。
|
258
|
+
|
259
|
+
type 例外レポート
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
メッセージ An exception occurred processing JSP page /jsp/who.jsp at line 8
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
説明 The server encountered an internal error that prevented it from fulfilling this request.
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
例外
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/who.jsp at line 8
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
5: prefix="bean" %>
|
280
|
+
|
281
|
+
6: <html:html>
|
282
|
+
|
283
|
+
7: <head>
|
284
|
+
|
285
|
+
8: <title><bean:message key="survey"/></title>
|
286
|
+
|
287
|
+
9: </head>
|
288
|
+
|
289
|
+
10: <body>
|
290
|
+
|
291
|
+
11: <h1><bean:message key="PleaseSurvey"/></h1>
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
Stacktrace:
|
298
|
+
|
299
|
+
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:525)
|
300
|
+
|
301
|
+
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
|
302
|
+
|
303
|
+
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
|
304
|
+
|
305
|
+
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
|
306
|
+
|
307
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
|
308
|
+
|
309
|
+
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
|
310
|
+
|
311
|
+
原因
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
javax.servlet.ServletException: javax.servlet.jsp.JspException: キー "survey" に対応するメッセージが見つかりません
|
316
|
+
|
317
|
+
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:868)
|
318
|
+
|
319
|
+
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
|
320
|
+
|
321
|
+
org.apache.jsp.jsp.who_jsp._jspService(who_jsp.java:99)
|
322
|
+
|
323
|
+
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
|
324
|
+
|
325
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
|
326
|
+
|
327
|
+
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
|
328
|
+
|
329
|
+
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
|
330
|
+
|
331
|
+
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
|
332
|
+
|
333
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
|
334
|
+
|
335
|
+
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
|
336
|
+
|
337
|
+
原因
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
javax.servlet.jsp.JspException: キー "survey" に対応するメッセージが見つかりません
|
342
|
+
|
343
|
+
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:233)
|
344
|
+
|
345
|
+
org.apache.jsp.jsp.who_jsp._jspx_meth_bean_005fmessage_005f0(who_jsp.java:170)
|
346
|
+
|
347
|
+
org.apache.jsp.jsp.who_jsp._jspx_meth_html_005fhtml_005f0(who_jsp.java:123)
|
348
|
+
|
349
|
+
org.apache.jsp.jsp.who_jsp._jspService(who_jsp.java:90)
|
350
|
+
|
351
|
+
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
|
352
|
+
|
353
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
|
354
|
+
|
355
|
+
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
|
356
|
+
|
357
|
+
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)
|
358
|
+
|
359
|
+
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
|
360
|
+
|
361
|
+
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
|
362
|
+
|
363
|
+
filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
|
364
|
+
|
365
|
+
```
|
366
|
+
|
367
|
+
やはり起動時にメッセージリソースファイルを読み込めず、file.setCharaterEncordingFilterでおちてしまいます。
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
よろしくお願いいたします。
|