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