- --jstl的c:choose
- <c:choose>
- <c:when test="${!empty indexArticles10}">
- <logic:iterate name="indexArticles10" scope="request" id="indexArticle" >
- <TR>
- <TD height=22 vAlign=center width=10 align=left>
-
- </TD>
- <TD vAlign=center width=392 align=left>
- <A class=txt title=${indexArticle.title }
- href="${pageContext.request.contextPath }/index/articleQuery.do?hid=2&sid=10&aid=${indexArticle.aid }">[${indexArticle.createdate }]${indexArticle.title }</A>
- <IMG src="${pageContext.request.contextPath }/img/index/new.gif">
- </TD>
- </TR>
- </logic:iterate>
- </c:when>
- <c:otherwise>
- <tr><td><font color="#0000ff" size="3"> 暂无数据</font></td></tr>
- </c:otherwise>
- </c:choose>