码上敲享录 > jsp开发经验分享 > jsp报错The function size must be used with a prefix when a default namespace is not specified

jsp报错The function size must be used with a prefix when a default namespace is not specified

上一章章节目录下一章 2019-05-15已有2162人阅读 评论(0)

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>


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交