我试图在JSP页面中使用以下标记lib:
<%@ 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"
我已经在我的类路径中使用了这个依赖项的JSTL:
<dependency>
<artifactId>javaee-api</artif
当我使用${fn:contains()}"时,它会导致以下异常:
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported
如何解决此异常?
如果我需要下载更新版本的jstl.jar & standard.jar,有没有人能给我发个链接?
提前谢谢。
我跟随JSTL使用变量呈现了一个javascript变量:
var size= "<c:out value='${fn:length(orders)}'/>";
然而,不是很幸运,我得到了一个异常,如下所示:
Element type "size" must be followed by either attribute specifications, ">" or "/>".
所以我使用
var size= <c:out value='${fn:length(orde
一个快速的JSTL问题。我通常在jsp页面中使用scriptlet,但由于页面中的其他一些东西而有冲突。我知道您可以使用JSTL来做类似的事情,尽管我对它并不熟悉。下面是我将使用java编写的代码:
if (var1.equalsIgnoreCase(var2)) {
some html stuff
} else {
more html
}
那么,可以将其转换和转换为与JSTL一起使用吗?
提前感谢,如果你有任何问题,请让我知道。
我导入了一个用JSP构建的web项目,这对我来说是个新手。我在WEB-INF/includes/components中遇到了一些无法解决的错误。
一些.jspf文件显示错误,如该行所示:
<c:if test="${fn:length(view.parent.views) > 1}">
错误是:
Multiple annotations found at this line:
- The function fn:length is
undefined
- Unknown tag (c:if).
对于fn:length,我也会收到像The function