Can not find the tag library descriptor for “http://java.sun.com/jstl/core”

Original blog address: https://blog.csdn.net/kolamemo/article/details/51407467

According to the information, JSTL taglib needs JSTL. Jar to support. In the 1.0 and 1.1 versions, standard. Jar is also needed. However, since version 1.2, the name of the jar file has changed to jstl-1.2.jar, and standard.jar is no longer needed. In addition, the servlet version needs to be more than 2.4. So the right way is to put jstl-1.2.jar into WEB-INF/lib. Or it can be configured through maven, as follows:

<dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

Then you see this error at run time:

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core Cannot be resolved in either web.xml or the jar files deployed with this application
this is a URI error. In jstl.jar version 1.0 and 1.1, there was no “JSP” in the name. But after 1.2, it became http://java.sun.com/jsp/jstl/core The problem is solved after modification

Similar Posts: