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

2025-10-24 00:24:03

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 报错

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢