关于自定义标签报空指针异常:"at org.apache.jasper.compiler.TldCache.getTaglibXml(TldCache.java:97) "
tomcat8对相对路径路径的不是很好。
可以在web.xml文件中设置好tld的路径,
然后JSP中直接<%@ taglib prefix="xia" uri="myTagLib" %>
web.xml文件添加以下配置:
<jsp-config>
<taglib>
<taglib-uri>myTagLib</taglib-uri>
<taglib-location>/includes/tt.tld</taglib-location>
</taglib>
</jsp-config>