0

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

Here is my folder structure,

enter image description here

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
VikramV
  • 1,111
  • 2
  • 13
  • 31
user1050619
  • 19,822
  • 85
  • 237
  • 413

4 Answers4

1

If you are running the maven project as dynamic web project on a server within eclipse, then you should follow the following steps!

open the project properties by right click on the project > properties and select Deployment Assembly.

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.

Demobilizer
  • 663
  • 9
  • 12
0

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.

VikramV
  • 1,111
  • 2
  • 13
  • 31
0

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)

Colin D
  • 2,822
  • 1
  • 31
  • 38
0

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.

aman
  • 51
  • 4