简体   繁体   中英

Cannot find the JSTL core library descriptor error in Eclipse

I am getting following error:

在此处输入图片说明

The taglib declaration I have:

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

Also I have included jstl.jar in my project libraries folder as can be seen above. So what could be other possible reasons.

  1. Drop all the directives you currently have in your JSP file, and drop the jstl.jar and standard.jar .
  2. Download the last JAR of JSTL here , and put it in your /WEB-INF/lib folder.
  3. Use the following URI in your taglib directives.

Directive for JSTL Core:

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

I had the same problem, the solution was removing the "/jsp" from uri:

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

In my case, I also had to change the "jstl/core" to "jstl/core_rt"

Regards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM