![](/img/trans.png)
[英]JSTL error: 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
[英]Absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in tomcat
我剛剛刪除了tomcat服務器,並將其重新添加到Eclipse Kepler中,然后在運行項目時遇到此錯誤。在刪除服務器之前,沒有任何問題。
我的POM的一部分包含:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
並且我的JSP頁面包含:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
我嘗試了Here的其他解決方案,但沒有解決我的問題。非常感謝您的幫助。
從mvnrepository試試這個
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
在這里閱讀類似的帖子
添加此方法有效,將jar添加到Tomcat卻沒有。
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.