jsp开发中cannot resolve taglib with uri的解决方法

来源:互联网 发布:python pyqt5教程 编辑:程序博客网 时间:2024/05/18 00:32

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包构建到项目路径中即可
下载地址:http://tomcat.apache.org/taglibs.html
阅读全文
0 0