<c:forEach items="${requestScope.schoolList.resultList}" var="re" varStatus= "status "><c:if test="status.index % 2 == 1"> <tr>
<td width="297" height="201"><img src="upload/${re.swphoto}" height="106" width="181"/></td></c:if><c:if test="status.index % 2 == 0"> <td width="290"><img src="upload/${re.swphoto}"></td>
</tr></c:if> </c:forEach>
<c:forEach items="${requestScope.schoolList.resultList}" var="re" varStatus= "status">
<c:if test="status.index % 2 == 0">
<tr></tr>//换一行
</c:if>
<tr>
<td width="297" height="201">
<img src="upload/${re.swphoto}" height="106" width="181"/>
</td>
</tr>
</c:forEach>
<c:forEach items="${requestScope.schoolList.resultList}" var="re" varStatus= "status "><c:if test="status.index % 2 == 1"> <tr>
<td width="297" height="201"><img src="upload/${re.swphoto}" height="106" width="181"/></td></c:if><c:if test="status.index % 2 == 0"> <td width="290"><img src="upload/${re.swphoto}"></td>
</tr></c:if> </c:forEach>
<c:forEach items="${requestScope.schoolList.resultList}" var="re" varStatus= "status">
<c:if test="status.index % 2 == 0">
</tr>
<tr>//换一行
</c:if>
<td width="297" height="201">
<img src="upload/${re.swphoto}" height="106" width="181"/>
</td>
</c:forEach>
</tr>
这是一行显示2个 在一个span中的2个链接
<div class="topLoop">
<div class="bd">
<ul class="infoList blacks">
<c:forEach items="${newsList}" var="news_li" varStatus="i_li">
<c:if test="${i_li.index % 2 eq 0}">
<li>
<c:forEach items="${newsList}" var="news_span" varStatus="i_span" begin="${i_li.index}" end="${i_li.index + 1}">
<span class="l_a"><a href="${news_span.bullURL}" title="${news_span.bullName}" target="_blank" style="display:block;">${news_span.bullName}</a></span>
</c:forEach>
</li>
</c:if>
</c:forEach>
</ul>
</div>
</div>