Skip to main content

JSTL 1.2 - The absolute uri: http://java.sun.com/jstl/core cannot be resolved



 If you still encounter this exception, it's mean that something you have done wrong. The most important informations you will find here.
Basically this is summary what you need to do to deal with this exception.
  1. Check servlet version in web.xml: <web-app version="2.5">
  2. Check if JSTL version is supported for this servlet version: 2.5->1.2 JSTL or 2.4->1.1 JSTL
  3. Your servlet container must have appropriate library or you must attach manually to your application. For example: JSTL 1.2 requires jstl-1.2.jar
What with Tomcat 5 or 6:
You need to include appropriate jar(s) into your WEB-INF/lib directory (it will work only for this application) or to the tomcat/lib (will work globally).
The last thing is a taglib in your jsp files. For JSTL 1.2 correct one is this:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



Original link: http://stackoverflow.com/questions/4928271/jstl-1-2-the-absolute-uri-http-java-sun-com-jstl-core-cannot-be-resolved

Comments