質問編集履歴

1

ソース追加、別エラー発生

2016/02/28 13:17

投稿

junpi-ya
junpi-ya

スコア17

test CHANGED
File without changes
test CHANGED
@@ -122,6 +122,56 @@
122
122
 
123
123
  }
124
124
 
125
+ MMPC003form.java----------------------------------------------------------
126
+
127
+ package model;
128
+
129
+
130
+
131
+ public class MMPC003form {
132
+
133
+
134
+
135
+ private String email;
136
+
137
+ private String error;
138
+
139
+
140
+
141
+ public String getEmail() {
142
+
143
+ return email;
144
+
145
+ }
146
+
147
+
148
+
149
+ public void setEmail(String email) {
150
+
151
+ this.email = email;
152
+
153
+ }
154
+
155
+
156
+
157
+ public String getError() {
158
+
159
+ return error;
160
+
161
+ }
162
+
163
+
164
+
165
+ public void setError(String error) {
166
+
167
+ this.error = error;
168
+
169
+ }
170
+
171
+ }
172
+
173
+
174
+
125
175
 
126
176
 
127
177
  S007.java------------------------------------------------
@@ -205,3 +255,49 @@
205
255
  --------------------------------------------------------------
206
256
 
207
257
  よろしくお願いいたします。
258
+
259
+
260
+
261
+ 【追記】
262
+
263
+ 一番最後のMMPC004.jspのみ実行してみると、
264
+
265
+ HTTPステータス 500 - JSPのクラスをコンパイルできません: というエラーが出てきました!(泣)
266
+
267
+
268
+
269
+ type 例外レポート
270
+
271
+ メッセージ JSPのクラスをコンパイルできません:
272
+
273
+ 説明 The server encountered an internal error that prevented it from fulfilling this request.
274
+
275
+ 例外
276
+
277
+ org.apache.jasper.JasperException: JSPのクラスをコンパイルできません:
278
+
279
+
280
+
281
+ An error occurred at line: [14] in the generated java file: [C:\pleiades\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\MyManeger\org\apache\jsp\MMPC004_jsp.java]
282
+
283
+ Only a type can be imported. model.MMPC003form resolves to a package
284
+
285
+
286
+
287
+ JSPファイル: /MMPC004.jsp の中の4行目でエラーが発生しました
288
+
289
+ MMPC003form cannot be resolved to a type
290
+
291
+ 1: <%@ page language="java" contentType="text/html; charset=UTF-8"
292
+
293
+ 2: pageEncoding="UTF-8"%>
294
+
295
+ 3: <%@ page import="model.MMPC003form"%>
296
+
297
+ 4: <%MMPC003form mmpc003 = (MMPC003form) request.getAttribute("error");%>
298
+
299
+ 5: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
300
+
301
+ 6: <html>
302
+
303
+ 7: <head>