質問編集履歴

1

エラーの実行結果をより詳細に追記しました

2020/01/17 03:44

投稿

arukana-1
arukana-1

スコア10

test CHANGED
File without changes
test CHANGED
@@ -194,6 +194,78 @@
194
194
 
195
195
  ```
196
196
 
197
+ JSPの実行結果
198
+
199
+ ```
200
+
201
+ org.apache.jasper.JasperException: JSPのクラスをコンパイルできません:
202
+
203
+
204
+
205
+ JSPファイル: [/WEB-INF/jpa/search.jsp] の中の[19]行目でエラーが発生しました
206
+
207
+ User cannot be resolved to a type
208
+
209
+ 16: </tr>
210
+
211
+ 17:
212
+
213
+ 18: <%
214
+
215
+ 19: List<User> name_list = (List<User>)request.getAttribute("name_list");
216
+
217
+ 20: for (User data: name_list){
218
+
219
+ 21: out.println("<tr><td>" + String.valueOf(data.getId()) + "</td>");
220
+
221
+ 22: out.println("<td>" + data.getUserId() + "</td>");
222
+
223
+
224
+
225
+
226
+
227
+ JSPファイル: [/WEB-INF/jpa/search.jsp] の中の[19]行目でエラーが発生しました
228
+
229
+ User cannot be resolved to a type
230
+
231
+ 16: </tr>
232
+
233
+ 17:
234
+
235
+ 18: <%
236
+
237
+ 19: List<User> name_list = (List<User>)request.getAttribute("name_list");
238
+
239
+ 20: for (User data: name_list){
240
+
241
+ 21: out.println("<tr><td>" + String.valueOf(data.getId()) + "</td>");
242
+
243
+ 22: out.println("<td>" + data.getUserId() + "</td>");
244
+
245
+
246
+
247
+
248
+
249
+ JSPファイル: [/WEB-INF/jpa/search.jsp] の中の[20]行目でエラーが発生しました
250
+
251
+ User cannot be resolved to a type
252
+
253
+ 17:
254
+
255
+ 18: <%
256
+
257
+ 19: List<User> name_list = (List<User>)request.getAttribute("name_list");
258
+
259
+ 20: for (User data: name_list){
260
+
261
+ 21: out.println("<tr><td>" + String.valueOf(data.getId()) + "</td>");
262
+
263
+ 22: out.println("<td>" + data.getUserId() + "</td>");
264
+
265
+ 23: out.println("<td>" + data.getName() + "</td></tr>");}
266
+
267
+ ```
268
+
197
269
  その他環境など質問がありましたらなんでも聞いて頂ければお答えします!
198
270
 
199
271
  重ねてよろしくお願いします。