jsp报错The function size must be used with a prefix when a default namespace is not specified
解决方法:
在tomcat7中以下写法没问题,但在tomcat6上就报错了:
<c:if test="${rows.size()%2!=0}"> </c:if>
修改如下:
引入<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:if test="${fn:length(rows)%2!=0}"> </c:if>