我在jsp中包含了标记库,如下所述:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>我试着在这个代码中使用它:
<c:when test="${fn:length(training.trainingevents) gt 0 }">但是越来越少的错误
org.apache.taglibs.standard.functions.Functions :在TLD中为函数fn:org.apache.jasper.JasperException指定的类org.apache.jasper.JasperException: org.apache.taglibs.standard.functions.Functions
发布于 2014-10-02 23:13:21
不确定,关于jstl标记库的错误,但是我可以使用下面的代码来解决这个问题,
<c:when test="${not empty training.trainingevents}">发布于 2019-09-27 14:05:23
由于JSTL的jar较旧,因此发生了错误,请使用JSTL1.2版本解决此问题。对我起作用了。
https://stackoverflow.com/questions/26170482
复制相似问题