JDBC Servlet Example (contd.)
private void dispResultSet(ResultSet rs, PrintStream out)
//get the resultset metadata from the result set
ResultSetMetaData rsmd = rs.getMetaData();
//get the # of columns in the table and display the results
for (int I;I <= numcols; I++) {
//display the values for each column