%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/taglibs-datetime.tld" prefix="dt" %> - <% for (int i = 0; i < enrollmentIDsToTransfer.length; i++) { final String enrollmentIDToTransfer = enrollmentIDsToTransfer[i]; %> <% } %> this.form.method.value='changeStudentCurricularPlanState';this.form.selectedStudentCurricularPlanId.value=<%= studentCurricularPlanId.toString() %>;this.form.submit(); : : ... - ... <% boolean isSelected = false; for (int i = 0; i < enrollmentIDsToTransfer.length; i++) { final String enrollmentIDToTransfer = enrollmentIDsToTransfer[i]; if (enrollmentIDToTransfer.equals(enrollmentIdString)) { isSelected = true; } } if (isSelected) { %> <% } %> this.form.method.value='changeStudentCurricularPlanState';this.form.selectedStudentCurricularPlanId.value=<%= studentCurricularPlanId.toString() %>;this.form.submit(); : : ... - ...