<c:forEach var="rr" items="${r.list}" varStatus="i">
<input type="checkbox" name="checkbox" value = "${rr.right_id}" id="${rr.right_id}"/>
${rr.right_name}
<c:if test="${i.count%6==0&&!i.last}">
<br>
</c:if>
</c:forEach>
<input type="checkbox" name="checkbox" value = "${rr.right_id}" id="${rr.right_id}"/>
${rr.right_name}
<c:if test="${i.count%6==0&&!i.last}">
<br>
</c:if>
</c:forEach>