89ou 发表于 2017-1-28 13:32:21

Tomcat 7.0 配置 taglib

java.lang.IllegalArgumentException: taglib definition not consistent with specification version

这个错误是有由于 web.xml 2.5或者以上版本 中对<taglib>有了改变!

web.xml 2.5以前都是如下:
<taglib>
<taglib-uri>/s</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>

而 web.xml 2.5以后应该这样配置:
<jsp-config>
<taglib>
<taglib-uri>/s</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib>
</jsp-config>
页: [1]
查看完整版本: Tomcat 7.0 配置 taglib