tomcat8.0中使用taglib
错误表现:
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
原因:
tomcat6以上在web.xml中定义taglib时要嵌入到jsp-config标签中
<jsp-config>
<taglib>
<taglib-uri></taglib-uri>
<taglib-location></taglib-location>
</taglib>
</jsp-config>
转自https://www.cnblogs.com/sharpest/p/7807530.html
本文详细解析了在Tomcat8.0环境中配置taglib时出现的taglibdefinitionnotconsistentwithspecificationversion错误,阐述了错误产生的原因及正确配置方法,强调了在Tomcat6及以上版本中,taglib必须嵌套在jsp-config标签内。
8万+

被折叠的 条评论
为什么被折叠?



