The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either
在web.xml中增加如下配置即可:
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
<taglib-location>/WEB-INF/tld/fn.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt-1_0-rt</taglib-location>
</taglib>
</jsp-config>
在web.xml中增加如下配置即可:
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
<taglib-location>/WEB-INF/tld/fn.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt-1_0-rt</taglib-location>
</taglib>
</jsp-config>
本文介绍了解决在使用JavaServer Pages (JSP)时遇到的JSTL (JavaServer Pages Standard Tag Library) URI无法解析的问题。通过在web.xml文件中正确配置JSP标准标签库的URI映射,可以有效避免此类错误的发生。
5664

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



