eclipse在项目编译时报如下问题:

经上网查询发现是web.xml里面对<taglib>标签进行校验的原因,处理方法如下:
tomcat7.0前版本web.xml中taglib配置如下:
<taglib>
<taglib-uri>http://www.krmsoft.com/tags-slsint</taglib-uri>
<taglib-location>/WEB-INF/slsint.tld</taglib-location>
</taglib>
tomcat7.0后版本taglib配置如下:
<jsp-config>
<taglib>
<taglib-uri>http://www.krmsoft.com/tags-slsint</taglib-uri>
<taglib-location>/WEB-INF/slsint.tld</taglib-location>
</taglib>
</jsp-config>
本文介绍了解决Eclipse项目编译时遇到的问题,特别是关于web.xml中<taglib>标签的配置错误。文章详细解释了在不同版本的Tomcat中,<taglib>标签配置的区别,并提供了正确的配置示例。
1608

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



