<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="dao.*, vo.*, utils.*, exceptions.*, exceptions.sql.*"%> <%@page import="java.util.*"%> <% try{ %> <%@include file="/include/schoolsHeader.htm"%> <%@include file="/include/colorbox/scripts.htm"%> Sifu Trainees

The following individuals are all actively pursuing the Gold Mantis Levels. The Federations wishes them the best in their journey toward the ACMAF National Sifu Certification.

<% Database db = new Database(); TraineeDAO traineeDao = new TraineeDAO(db); Collection trainees = traineeDao.selectTrainees(-1, "", "", -1, "rank"); db.disconnect(); Iterator i = trainees.iterator(); boolean isFirstCell = true; TraineeVO trainee; UserVO user; int rankId = -1; while(i.hasNext()){ trainee = (TraineeVO) i.next(); if(trainee.getRankId() != rankId){ //new rank rankId = trainee.getRankId(); if(!isFirstCell){ out.println(""); } out.println(""); isFirstCell=true; } if(isFirstCell){ out.println(""); //start the table row } %> <% if(!isFirstCell){ out.println(""); } isFirstCell = !isFirstCell; } %>

"+trainee.getRank()+"
<%=trainee.getFname()%> <%=trainee.getLname()%> <%=trainee.getFname()%> <%=trainee.getLname()%>
<%=trainee.getSchoolCity()%>, <%=trainee.getSchoolRegionAbbrev()%>
<%@include file="/include/footer.htm"%> <% }catch(Exception e){ throw new WebException("trainees.jsp", e.getMessage()); } %>