Web/JSP
[Error:JSP] CannotRenderException 해결
영보로그
2021. 3. 12. 16:13
반응형
오류 내용
타입 예외 보고
메시지 Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: 행 [29]에서 [/WEB-INF/tiles/admin/template.jsp]을(를) 처리하는 중 예외 발생
설명 서버가, 해당 요청을 충족시키지 못하게 하는 예기치 않은 조건을 맞닥뜨렸습니다.
예외
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: 행 [29]에서 [/WEB-INF/tiles/admin/template.jsp]을(를) 처리하는 중 예외 발생
Tiles에 선언한 attribute중 해당 attribute 내용에 아무런 값이 없을 때 발생
→ Tiles에 선언한 attribute에 값이 없을 경우 Runtime Exception이 발생한다는 것
오류 해결
→ tiles:putAttibute ignore기본 값 = "false"기 때문에 "true"로 바꿔줌
<!DOCTYPE html>
<html lang="ko">
<tiles:insertAttribute name="head"/>
<body>
<tiles:insertAttribute name="header" ignore="true"/>
반응형