细节决定成败:
原因:通过c:foreach遍历集合时后面
多敲了个空格items="${list} 多敲空格处的位置"
<c:forEach items="${list} " var="emp">
<%--通过if判断域对象是否为空,不为空从遍历域对象中得集合--%>
<c:if test="${! empty list}">
<c:forEach items="${list} " var="emp">
<tr>
<td><input name="ids" value="1" type="checkbox"></td>
<td>${emp.id}</td>
<td>${emp.ename}</td>
<td>${emp.joindate}</td>
<td>${emp.salary}</td>
<td>${emp.bonus}</td>
<td>${emp.dept_id}</td>
<th class="text-center">
<button type="button" class="btn bg-olive btn-xs" onclick='location.href=""'>
编辑
</button>
<button type="button" class="btn bg-olive btn-xs" onclick='location.href=""'>
删除
</button>
</th>
</tr>
</c:forEach>
</c:if>