http://java.sun.com/jsp/jstl/core 报错

时间:2026-02-15 22:50:42

1、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 deployed with this application

at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH

http://java.sun.com/jsp/jstl/core 报错

2、at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:117)

at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:311)

at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:152)

http://java.sun.com/jsp/jstl/core 报错

3、at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:410)The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

http://java.sun.com/jsp/jstl/core 报错

1、andler.java:56)

at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:445)

http://java.sun.com/jsp/jstl/core 报错

2、没有jstl架包。下载jstl架包,引入;如果是maven项目引入

<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl -->

<dependency>

    <groupId>javax.servlet.jsp.jstl</groupId>

    <artifactId>jstl</artifactId>

    <version>1.2</version>

</dependency>

http://java.sun.com/jsp/jstl/core 报错

3、jsp也买你引入

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

<%@ page contentType="text/html;charset=UTF-8" language="java" %>

http://java.sun.com/jsp/jstl/core 报错

4、就可以使用jstl标签了。

 <c:set var="ctx" value="${pageContext.request.contextPath}"  scope = "request"/>

http://java.sun.com/jsp/jstl/core 报错

© 2026 途途旅游
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com