[jsp] illegal to have multiple occurrences of contentType with different values 오류
org.apache.jasper.JasperException: Page directive: illegal to have multiple occurrences of contentType with different values
위 오류는 페이지에 추가된 jsp 페이지마다 캐릭터셋이 다를때 나타나는 오류 입니다.
보통 top, left, body, footer 각각 다른 파일로 만들어놓고 하나의 페이지에서 불러오게 되는데
이 top, left, body, footer 각 파일의 캐릭터셋을 통일시켜주지 않으면 위와 같은 에러메시지가 출력됩니다.
따라서 캐릭터셋을 통일시켜주면 해결됩니다.
대소문자를 구분하므로 예를들어 utf-8과 UTF-8 을 다르게 인식하니 하나로 맞춰주세요.
[jsp] maven install시 invalid LOC header 오류 (0) | 2013.08.13 |
---|---|
[tomcat] Can't load AMD 64-bit .dll on a IA 32-bit platform 오류 (5) | 2013.08.09 |
[jsp] csv 파일 다운로드 만들기 (0) | 2013.08.05 |
[jsp] contextPath를 출력해주는 pageContext.request.contextPath (2) | 2013.07.10 |
[iBatis] NoSuchElementException 오류 (2) | 2013.07.08 |