用 jstl 做一段跌代 后出现这样的错误! 不知道为什么??
就是在list.jsp中 用 jstl 做一段跌代(list)! 后出现这样的错误! 不知道为什么??
//我测试过 后台代码没有问题!! list 有值
org.apache.jasper.JasperException: /list.jsp(71,6) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
list.jsp 部分代码:
<c:choose>
<c:when test="${empty list2}">
<tr>
<td colspan="9">
没有你要的数据
</td>
</tr>
</c:when>
<c:otherwise>
<c:forEach items="${list}" var="u">
<tr>
<td> </td>
<td>${u.card_id}</td>
<td>${u.name}</td>
<td>${u.sex]}</td>
<td>${u.mobile]}</td>
<td>${u.phone}</td>
<td>${u.email}</td>
<td>${u.address}</td>
<td><a href="">修改</a></td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
------解决方案--------------------