Office Phone Directory

<% model.processRequest(request); %>

Now showing employees <%= model.getCurrentFirstRow() %> to <%= model.getCurrentLastRow() %> of <%= model.getTotalRowCount() %>.

<% int cols = model.getColumnCount(); // loop over each column in the table for (int c = 0; c < cols; c++) { %> <% } %> <% int rows = model.getRowCount(); // loop over each row in the table for (int r = 0; r < rows; r++) { %> bgcolor=F0F0FF<% } %>> <% // and loop over each column for (int c = 0; c < cols; c++) { %> <% } %> <% } %>
<%= model.getColumnName(c) %>  
<%= model.getValueAt(r, c) %>  

<% int currentPage = model.getCurrentPage(); %> <% if (model.isFirstPage()) { %> <% } else { %> <% } %> <% for (int i = 1; i <= model.getTotalPages(); i++) { %> <% if (i == currentPage) { %> <% } else { %> <% } %> <% } %> <% if (model.isLastPage()) { %> <% } else { %> <% } %>