回答編集履歴

2

既にある処理を削除

2020/05/29 08:38

投稿

Yasumichi
Yasumichi

スコア1773

test CHANGED
@@ -12,6 +12,4 @@
12
12
 
13
13
  request.setAttribute("book", book);
14
14
 
15
- request.getRequestDispatcher("/jsp/select/list.jsp").forward(request, response);
16
-
17
15
  ```

1

変数名を遷移先に合わせた。

2020/05/29 08:37

投稿

Yasumichi
Yasumichi

スコア1773

test CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ```java
10
10
 
11
- List<Book> bookList = BookSerchDao.findAll();
11
+ List<Book> book = BookSerchDao.findAll();
12
12
 
13
- request.setAttribute("bookList", bookList);
13
+ request.setAttribute("book", book);
14
14
 
15
15
  request.getRequestDispatcher("/jsp/select/list.jsp").forward(request, response);
16
16