我尝试使用下面的标记库在我的JSP页面:的Java EE 7:无法找到标签库描述为“http://java.sun.com/jsp/jstl/core”
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
但是Eclipse显示我这个错误:
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
我使用的这个相关性已经有我的classpath JSTL:
<dependency>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
我用WildFly 9
我有这2个其他标记库同样的问题:
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
备注:下面的链接是给404 HTTP错误:http://central.maven.org/maven2/javax/servlet/jsp/jstl/jstl/1.2/jstl-1.2.jar
谢谢。
使用'http:// central.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar'下载'jstl' jar。 – Srinu
在JavaEE 7中,命名空间已更改为“http:// xmlns.jcp.org/jsp/jstl/core” – thatsIch