인프런 커뮤니티 질문&답변
상품 수정
작성
·
222
0
안녕하세요 강사님 웹 계층 개발의 상품 수정 부분의 updateItemForm.html로 넘어가게 되면 아래의 오류가 나는데 혹시 무엇이 잘못 된 것인지 알 수 있을까요? 구글링해서 객체 이름도 바꿔보고 스프링 부트 버전도 낮춰 봤지만 효과가 없었습니다ㅠㅠ
Caused by: org.attoparser.ParseException: Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor' (template: "items/updateItemForm" - line 9, col 30)
Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor' (template: "items/updateItemForm" - line 9, col 30)
Caused by: java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'form' available as request attribute
필드 값을 <input type="hidden" th:field="${book.id}"/> 이렇게 바꾸면 정상 작동하긴 하는데
왜 updateItemForm.html에서만 th:field="*{name}" 이렇게 쓰는것이 안먹히는 걸까요..? createItemForm.html에서는 문제 없었습니다!






이부분 말씀하시는 거라면 있습니다! 그런데도 안되는 경우가 있을까요..?