c:if 判断list的长度小于2


导入

/c:if

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

/c:if

test"${list.size<2}"

在正则表达式中${}调用不能调用方法,
即不可以这样${oauser.getUserId()} ${u.getPostcode()}而是要这样${oauser.userId}要省略括号和get,也就是直接用模型里面的属性就可以了,才能正确运行

.........
/c:if