본문 바로가기

JSP

taglib definition not consistent with specification version

org.xml.sax.SAXParseException; systemId: jndi:/localhost/study/WEB-INF/web.xml; lineNumber: 38; columnNumber: 13; Error at (38, 13) : taglib definition not consistent with specification version

최신 버전의 eclipse를 쓰는 경우 에러가 나타난다고 함.


web.xml의 taglib 위 아래로 jsp-config 태그로 감싸준다.

<jsp-config>

<taglib>

<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>

<taglib-location>/WEB-INF/tld/c.tld</taglib-location>

</taglib>

</jsp-config>