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

用jstl完成for循环中的break,我的个去

?

<c:forEach items="${pManagerList}" var="authority">
	<span style="margin-left: 10px;"></span>
	<c:set var="isDoing" value="0"/>
	<c:forEach items="${role.authoritys}" var="ourAuthority">
		<c:if test="${ourAuthority.a_id==authority.a_id }">
		<c:set var="isDoing" value="1"/>
		 <input type="checkbox" name="pma" value="${authority.a_id }" checked="checked" />${authority.a_name }<br/>
		 </c:if>
		                  			
  	</c:forEach>
	<c:if test="${isDoing!='1'}">
	<input type="checkbox" name="pma" value="${authority.a_id }" />${authority.a_name }<br/>
	</c:if>
</c:forEach>
?

?