唯爱小粽子:jsp开发中cannot resolve taglib with uri的解决方法

问题描述:

IDE错误提示:cannot resolve taglib with uri http://java.sun.com/jsp/jstl/fmt 或者 cannot resolve taglib with uri ...或者org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files

解决方法:

在jsp开发的时候可能会碰到这个错误,其实这个问题很简单,只是缺少对于jsp支持的jar包,这两个jar包分别是:jstl.jar和standard.jar。

如果你使用的是maven的话,只需要在pom.xml文件里面加入这两个jar包即可

<span style="font-size:18px;"><dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>${javax.servlet.jstl}</version>
    </dependency>
    <dependency>
      <groupId>taglibs</groupId>
      <artifactId>standard</artifactId>
      <version>${taglibs.standard}</version>
    </dependency></span>

如果没有使用maven框架的话,只需要手动的下载这两个jar包,然后把他们放到项目的WEB-INF/lib文件夹,然后将jar包构建到项目路径中即可


唯爱小粽子:jsp开发中cannot resolve taglib with uri的解决方法_第1张图片




你可能感兴趣的:(maven,jsp,uri)