Cannot find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”
Posted by Albin Joseph | Posted in JSP | Posted on 09-12-2008
4
Cannot find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”
‘Cannot find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”‘ is an error message that you might have seen while executing your JSTL code. So if you are getting this error message, the first thing you need to do is to make sure that you have all the JSTL jar files are in your class path. If you have the JSTL libraries in your class path and still you are getting the same error, you will have an older version of JSTL in your class path. Now to fix this issue change the declaration to
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %>


(4 votes, average: 4.75 out of 5)
Thnks! your comment is very useful for me
Thanks you helped me, but can you give also a short explanation why it help to change the taglib declaration?
Depending on the version of web application you need to use different versions of JSTL. For web application version 2.5 and 2.4, the JSTL will be referred
< %@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
where for version 2. 3 the JSTL reference will be
< %@taglib prefix="c" uri="http://java.sun.com/jsp/core" %>
Many many thanks, very useful