日期:2014-05-16  浏览次数:20289 次

JSTL中if/else使用
<c:forEach var="i" begin="1" end="${totalPage}" step="1">
			<c:choose>
     			<c:when test="${i==currentPage}"><span class="current">${i}</span></c:when>
		      	<c:otherwise><a href="#"><c:out value="${i}" /></a></c:otherwise>
    		</c:choose>
			</c:forEach>