JSP

 

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd

 

몇버전 부터인지는 정확히 모르겠고 web.xml에 2.4나 2.5에서 <taglib>를 쓰면 에러메시지가 뜬다.

 

cvc-complex-type.2.4.a:Invalid content was found starting with element 'taglib'

 

 

해결 방법은 <taglib>를 <java-config>태그안에 넣는다.

 

ex.

 <jsp-config>
  <taglib>
   <taglib-uri> ...   </taglib-uri>
   <taglib-location> ... </taglib-location>
  </taglib>
 </jsp-config>

[출처] web.xml taglib error|작성자 알콜진

'jsp' 카테고리의 다른 글

jsp에서 톰켓로그 보여주기(실시간 아님)  (0) 2012.11.27
페이징 처리기법  (0) 2012.11.25
jstl설치하기  (0) 2010.12.22

+ Recent posts