Eclipse -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

I read all the posts regarding this error but for some reason it does not work for me...

Here is my folder structure,

I get the error as mentioned in my title,

The code of the if_tag.jsp,

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title><c:if> Tag Example</title>
</head>
<body>
<c:set var="salary" scope="session" value="${2000*2}"/>
<c:if test="${salary > 2000}">
   <p>My salary is: <c:out value="${salary}"/><p>
</c:if>
</body>
</html>

The jstl libraries are located in -

C:\tomcat\webapps\ROOT\WEB-INF\lib

JSTL uses different URIs. You just need to get the right version of it. You could download using JSTL 1.2 or download the JSTL 1.1 jars.

Javaranch has more detailed list of version/URIs.

I just wanted to note that if you have a project that is Maven based, and you import it into eclipse but receive this error absolute URI, then you might need to follow these directions Maven dependencies not visible in WEB-INF/lib (namely the Deployment assembly step)

To solve this issue copy and paste the jstl-1.2.jar file into your WEB-INF/lib folder directory. This will fix your issue.

if you are running the project as dynamic web project on a server within eclipse, then you should open the project properties by right click > properties and select "Deployment Assembly". There click "add", select "Java build path entries", and choose "maven dependencies" and then click Finish and Apply.

hope, it may work. it worked for me.