<c:forEach <c:forTokens

 <c:if test="${roleStr!='' }">
  <c:forEach items="${flowList}" var="l">
  <c:if test="${l.businessName=='银企对账' }">
    <input type="text" name="insertRole" id="insertRole" style="display:none">
    <c:forEach items="${roleList}" var="r">
     <c:set var="isGet" value="0"/>
     <c:forTokens var="token" items="${l.flowSerial }" delims=";">
      <c:if test="${r.roleId==token}">
        <c:set var="isGet" value="1"/>
      </c:if>
           </c:forTokens>
           <c:if test="${isGet=='1' }">
            <input type="checkbox" name="operatorRole" value="${r.roleId}"  onclick="insertRoleStr(this);" checked="checked">${r.roleName}    &nbsp;&nbsp;
     </c:if> 
           <c:if test="${isGet=='0' }">
            <input type="checkbox" name="operatorRole" value="${r.roleId}"  onclick="insertRoleStr(this);">${r.roleName}&nbsp;&nbsp;    
           </c:if>            
    </c:forEach>     
     </c:if> 
 </c:forEach>
 </c:if> 

posted @ 2011-12-09 14:45  七郎  Views(1417)  Comments(0Edit  收藏  举报