private void dispResultSet(ResultSet rs, PrintStream out) |
throws SQLException { |
//get the resultset metadata from the result set |
ResultSetMetaData rsmd = rs.getMetaData(); |
//get the # of columns in the table and display the results |
while (rs.next() ) { |
for (int I;I <= numcols; I++) { |
//display the values for each column |
} |
} |
} |
Show this example with an HTML page interface. |