<table>
<c:forEach items="${requestScope.seatList}" var="item">
<tr>
<c:forEach items="${item}" var="it">
<td>
<c:if test="${it==0}">
<img src="<%=basePath%>/img/wei.png">
c:if>
<c:if test="${it==1}">
<img src="<%=basePath%>/img/yi.png">
c:if>
td>
c:forEach>
tr>
c:forEach>
table>
div>
你这是 JSP 的代码吧, ${requestScope.seatList} 这个变量 有值嘛? 没数据的话,里面的标签 不会有的哦!