javax.el.ELException: Cannot convert

꿈나무기록장·2021년 2월 3일
0

오류

목록 보기
2/5
<c:if test='${u.fieldType eq "text"}'>

여기에서 이러한 오류가 떴다.
javax.el.ELException: Cannot convert [text] of type [class java.lang.String] to [class java.lang.Long]

private char fieldType; 

원인: String인 'text'를 char 과 비교하여 생긴 문제로 추측

해결방법:
받아오는 type 을 char --> String으로 변경

private String fieldType;
profile
초보자가 기록하는 곳

0개의 댓글