int firstCol = (skipRowHdr ? 1 : 0);
for (int row=firstRow; row <= tableData.numRows(); row++) {
out.println("<TR>");
for (int col=firstCol; col <= tableData.numCols(); col++) {
out.print("<TD" + getColAttributes(col) + ">");
out.print(esc(tableData.format(row, col)));
out.println("</TD>");
}
out.println("</TR>");
}