欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jstl cannot be resolved in either 的一种原因 jstlresolved in either 

程序员文章站 2022-04-02 23:17:51
...
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>