質問編集履歴
2
jspの内容を一部修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -447,3 +447,73 @@
|
|
447
447
|
|
448
448
|
|
449
449
|
```
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
2018/11/02 追記
|
454
|
+
|
455
|
+
ご回答いただいた内容を受け、jspを一部修正しました。
|
456
|
+
|
457
|
+
```jsp
|
458
|
+
|
459
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
460
|
+
|
461
|
+
pageEncoding="UTF-8"%>
|
462
|
+
|
463
|
+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
464
|
+
|
465
|
+
<!DOCTYPE html>
|
466
|
+
|
467
|
+
<html>
|
468
|
+
|
469
|
+
<head>
|
470
|
+
|
471
|
+
<meta charset="UTF-8">
|
472
|
+
|
473
|
+
<title>社員データ</title>
|
474
|
+
|
475
|
+
</head>
|
476
|
+
|
477
|
+
<body>
|
478
|
+
|
479
|
+
社員データを表示
|
480
|
+
|
481
|
+
<br>
|
482
|
+
|
483
|
+
<table>
|
484
|
+
|
485
|
+
<tr>
|
486
|
+
|
487
|
+
<th>No</th>
|
488
|
+
|
489
|
+
<th>名前</th>
|
490
|
+
|
491
|
+
<th>ひらがな</th>
|
492
|
+
|
493
|
+
</tr>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
<c:forEach items="${employeeList}" var="emp">
|
498
|
+
|
499
|
+
<tr>
|
500
|
+
|
501
|
+
<td><c:out value="${empList.employee_id}" /></td>
|
502
|
+
|
503
|
+
<td><c:out value="${empList.name}" /></td>
|
504
|
+
|
505
|
+
<td><c:out value="${empList.name_hiragana}" /></td>
|
506
|
+
|
507
|
+
</tr>
|
508
|
+
|
509
|
+
</c:forEach>
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
</table>
|
514
|
+
|
515
|
+
</body>
|
516
|
+
|
517
|
+
</html>
|
518
|
+
|
519
|
+
```
|
1
jspを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -381,3 +381,69 @@
|
|
381
381
|
|
382
382
|
|
383
383
|
```
|
384
|
+
|
385
|
+
```jsp
|
386
|
+
|
387
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
388
|
+
|
389
|
+
pageEncoding="UTF-8"%>
|
390
|
+
|
391
|
+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
392
|
+
|
393
|
+
<!DOCTYPE html>
|
394
|
+
|
395
|
+
<html>
|
396
|
+
|
397
|
+
<head>
|
398
|
+
|
399
|
+
<meta charset="UTF-8">
|
400
|
+
|
401
|
+
<title>社員データ</title>
|
402
|
+
|
403
|
+
</head>
|
404
|
+
|
405
|
+
<body>
|
406
|
+
|
407
|
+
社員データを表示
|
408
|
+
|
409
|
+
<br>
|
410
|
+
|
411
|
+
<table>
|
412
|
+
|
413
|
+
<tr>
|
414
|
+
|
415
|
+
<th>No</th>
|
416
|
+
|
417
|
+
<th>名前</th>
|
418
|
+
|
419
|
+
<th>ひらがな</th>
|
420
|
+
|
421
|
+
</tr>
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
<c:forEach items="${empList}" var="empList">
|
426
|
+
|
427
|
+
<tr>
|
428
|
+
|
429
|
+
<td><c:out value="${empList.employee_id}" /></td>
|
430
|
+
|
431
|
+
<td><c:out value="${empList.name}" /></td>
|
432
|
+
|
433
|
+
<td><c:out value="${empList.name_hiragana}" /></td>
|
434
|
+
|
435
|
+
</tr>
|
436
|
+
|
437
|
+
</c:forEach>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
</table>
|
442
|
+
|
443
|
+
</body>
|
444
|
+
|
445
|
+
</html>
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
```
|