<%@page import="bean.*" %>

<jsp:include page="Header.jsp">
  <jsp:param name="header" value="Dept Listing"/>
</jsp:include>

<% Dept[] depts = Dept.getDepartments(); %>

  <table>
<%
  for (int index=0; index < depts.length; index++){
%>
    <tr>
        <td>
        <%=depts[index].getName()%>
        </td>

        <td>
          <a href="EmployeeListing.jsp?deptid=<%=depts[index].getId()%>">show</a>
        </td>
    </tr>
<%}%>

  </table>

<%@include file="/Footer.jsp" %>
