我在 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).
我也收到错误The function fn:length is undefined
,例如fn:length
.
我跟进了其他问题,并确保将standard.jar
其jstl-1.2.jar
包含在我的构建路径中。此外,WEB-INF/includes/taglibs.jspf
还有以下内容:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>