& Ldquo; The absolute uri can not be resolved & hellip; & Rdquo; With JavaEE and Eclipse

advertisements
org.apache.jasper.JasperException: /index.jsp(1,64) PWC6188: 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
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:92)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)

I have that error when trying to add tags for JSP in Eclipse EE

Using standart J2EE Preview server


The most likely cause for this is a mismatch between the servlet version and jstl library you are trying to use.

If you're using servlet version 2.5 or 3.0, you should import the jstl tag lib as

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

If you're using 2.4, you should import the jstl tag lib as

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

Please show the web.xml and taglib import in your jsp. This will identify the servlet version you're using and help identify which version of jstl you should be using.