SelectBookController処理の追加

This commit is contained in:
2026-10-21 10:51:12 +09:00
parent 56da7392b9
commit a4a675d68e

View File

@@ -68,10 +68,28 @@ public class SelectBookController {
}
// ② 検索ボタン押下時の処理
@RequestMapping(value ="/selectBook", method = RequestMethod.POST)
public String ) {
@RequestMapping(value ="/selectBook", method = RequestMethod.GET)
public String select(SearchConditionBookForm searchConditionBookForm, Model model) {
try {
List<Book_collectionEntity> books = searchBook.searchByWithLike(searchConditionBookForm);
model.addAttribute("books", books);
return "bookList";
//
//!!ここに管理者か一般ユーザか判断・でボタンを表示
//
} catch (Exception e) {
//httpSessionを破棄
httpsession.invalidate();
//エラー内容を出力
e.printStackTrace();
//ログにエラーを記録
LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE, e);
//エラー画面へ遷移
return "error";
// }
}
}
}