<%@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"%> Instructors

The following individuals are all active and recognized by the American Chinese Martial Arts Federation. They are the only instructors authorized to teach Shyun Style Eight Step Preying Mantis Kung Fu and Shyun Style Tai Chi Chuan.

<% Database db = new Database(); SifuDAO sifuDao = new SifuDAO(db); Collection sifus = sifuDao.selectSifus(-1, -1, "", "", "", "y", "rank"); db.disconnect(); Iterator i = sifus.iterator(); boolean isFirstCell = true; SifuVO sifu; UserVO user; int rankId = -1; while(i.hasNext()){ sifu = (SifuVO) i.next(); if(sifu.getRankId() != rankId){ //new rank rankId = sifu.getRankId(); if(!isFirstCell){ out.println(""); } out.println(""); isFirstCell=true; } if(isFirstCell){ out.println(""); //start the table row } String master=""; if(sifu.isMaster()){ master="Master"; } String schoolLocation=""; if(sifu.getSchoolId()>-1){ schoolLocation=sifu.getSchoolCity()+", "+sifu.getSchoolRegionAbbrev(); } %> <% if(!isFirstCell){ out.println(""); } isFirstCell = !isFirstCell; } %>
Grandmaster James Shyun Grandmaster James Shyun O.M.D., Ph.D.
Fourth Generation Grandmaster
8 Step Preying Mantis Kung Fu

"+sifu.getRank()+"
<%=master%> <%=sifu.getFname()%> <%=sifu.getMname()%> <%=sifu.getLname()%> <%=master%> <%=sifu.getFname()%> <%=sifu.getMname()%> <%=sifu.getLname()%>
<% if(sifu.isDisciple()){ %>Disciple
<% } %> <%=schoolLocation%>
<%@include file="/include/footer.htm"%> <% }catch(Exception e){ throw new WebException("instructors.jsp", e.getMessage()); } %>