[英]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
I just deleted the tomcat server and added it back in Eclipse Kepler and then I am getting this error when I run my project.Before deleting the server there was no issues. 我刚刚删除了tomcat服务器,并将其重新添加到Eclipse Kepler中,然后在运行项目时遇到此错误。在删除服务器之前,没有任何问题。
Part of my POM contains : 我的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>
and My JSP page contains : 并且我的JSP页面包含:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
I tried other solutions from Here but did not resolve my issue.Any help is greatly appreciated. 我尝试了Here的其他解决方案,但没有解决我的问题。非常感谢您的帮助。
Try this one from mvnrepository 从mvnrepository试试这个
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
Adding this worked, adding the jar to Tomcat didn't. 添加此方法有效,将jar添加到Tomcat却没有。
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.