【发布时间】:2014-06-20 10:27:51
【问题描述】:
我在 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" %>
【问题讨论】:
标签: java jsp jsp-tags jsp-fragments