Java EE 7:找不到“http://java.sun.com/jsp/jstl/core"”的标记库描述符。 [英] Java EE 7 : Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
问题描述
<%@ taglib prefix =c uri =http://java.sun.com/jsp/jstl/core%>
但是Eclipse会显示这个错误:
找不到http://java.sun.com/jsp/jstl/core的标签库描述符
我已经在我的类路径中使用这种依赖关系使用JSTL:
<依赖性>
< artifactId> javaee-api< / artifactId>
< version> 7.0< / version>
< scope>已提供< / scope>
< / dependency>
我使用WildFly 9。
我这两个其他taglibs有同样的问题:
<%@ taglib prefix =furi =http: /java.sun.com/jsf/core\"%>
<%@ taglib prefix =huri =http://java.sun.com/jsf/html%>
备注:以下链接提供404 HTTP错误: http://central.maven.org/maven2/ javax / servlet / jsp / jstl / jstl / 1.2 / jstl-1.2.jar
谢谢。
如果您的Web应用程序直接使用JSTL,对于JSTL 1.0,命名空间是 http://java.sun.com/jstl/core 。
在JavaEE 5中,包含JSTL 1.1,命名空间为 http://java.sun .COM / JSP / JSTL /核心。
在JaveEE 6和JavaEE 7中,包含JSTL 1.2,命名空间为 http:// java.sun.com/jsp/jstl/core 。
但是,如果您的Web应用程序使用JSF + Facelets,则适用于JSF 1.x + Facelets 1。 x在JaveEE 5中,命名空间是 http://java.sun.com/jstl/core 。
对于JavaEE 6中的JSF 2.0 + Facelets 2.x,命名空间为 http:// java.sun.com/jsp/jstl/core 。
对于JavaEE 7中的JSF 2.2 + Facelets 2.2,命名空间是 http:// xmlns。 jcp.org/jsp/jstl/core 。
I am trying to use the following tag lib in my JSP page :
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
But Eclipse shows me this error :
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
I am already having JSTL in my classpath using this dependency :
<dependency>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
I use WildFly 9.
I have the same problem with these 2 other taglibs :
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
Remark : The following link is giving 404 HTTP error : http://central.maven.org/maven2/javax/servlet/jsp/jstl/jstl/1.2/jstl-1.2.jar
Thank you.
If your web application uses JSTL directly, for JSTL 1.0, the namespace is http://java.sun.com/jstl/core. In JavaEE 5, JSTL 1.1 is included, the namespace is http://java.sun.com/jsp/jstl/core. In JaveEE 6 and JavaEE 7, JSTL 1.2 is included, the namespace is http://java.sun.com/jsp/jstl/core.
But if your web application uses JSF+Facelets, for JSF 1.x+Facelets 1.x in JaveEE 5, the namespace is http://java.sun.com/jstl/core. For JSF 2.0+Facelets 2.x in JavaEE 6, the namespace is http://java.sun.com/jsp/jstl/core. For JSF 2.2+Facelets 2.2 in JavaEE 7, the namespace is http://xmlns.jcp.org/jsp/jstl/core.
这篇关于Java EE 7:找不到“http://java.sun.com/jsp/jstl/core"”的标记库描述符。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!