首页 > eclipse中jsp中使用jstl标签

eclipse中jsp中使用jstl标签

访问jsp页面总是报The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application错
jstl.jar与standard.jar都引入了,还是找不到这个资源,请问为什么?


试试这个:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

看一下是否为standard.jar版本的问题,我使用的是standard-1.1.2.jar文件。

正常情况下,standard.jar的META-INF文件夹下有个c.tld文件,内容中定义了uri。

  <description>JSTL 1.1 core library</description>
  <display-name>JSTL core</display-name>
  <tlib-version>1.1</tlib-version>
  <short-name>c</short-name>
  <uri>http://java.sun.com/jsp/jstl/core</uri>
【热门文章】
【热门文章】