简体   繁体   English

在Eclipse中找不到JSTL核心库描述符错误

[英]Cannot find the JSTL core library descriptor error in Eclipse

I am getting following error: 我收到以下错误:

在此处输入图片说明

The taglib declaration I have: 我有的taglib声明:

  <%@ 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. 如上所示,我还在项目库文件夹中包含了jstl.jar。 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 . 删除当前在JSP文件中拥有的所有指令,并删除jstl.jarstandard.jar
  2. Download the last JAR of JSTL here , and put it in your /WEB-INF/lib folder. 此处下载JSTL的最后一个JAR,并将其放在/WEB-INF/lib文件夹中。
  3. Use the following URI in your taglib directives. 在您的taglib指令中使用以下URI。

Directive for JSTL Core: JSTL核心指令:

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

I had the same problem, the solution was removing the "/jsp" from uri: 我遇到了同样的问题,解决方案是从uri中删除“ / jsp”:

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

In my case, I also had to change the "jstl/core" to "jstl/core_rt" 就我而言,我还必须将“ jstl / core”更改为“ jstl / core_rt”

Regards. 问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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