gpt4 book ai didi

tomcat - 马文 : cannot find the tag library descriptor

转载 作者:行者123 更新时间:2023-11-28 21:52:21 27 4
gpt4 key购买 nike

我正在使用 maven3 和 tomcat7,我想在我的 jsp 页面中使用 JSTL,所以我添加了这个标签库:

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

我收到此错误消息的问题:找不到标记库描述符这是添加的依赖项: javax.servlet jSTL 1.1.1

    <dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>

我试过这个 taglib 但同样的问题仍然存在:

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

你有什么想法吗

最佳答案

您需要两个不同的 jar 文件才能使标签工作。您已将标准列为依赖项,但您还需要为 JSTL 添加依赖项。

关于tomcat - 马文 : cannot find the tag library descriptor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11345785/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com