Basic HTML version of Foils prepared 7 October 97

Foil 43 JDBC Servlet Example (contd.)

From Overview of JDBC and its use with Microsoft Access ARL Database Tutorial -- February 98. by Nancy McCracken(Sangetta Aggarwal, Udayan Parvate, Tom Pulikal)


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 &#060= numcols; I++) {
8 //display the values for each column
9 }
10 }
11 }

in Table To:


© on Mon Oct 13 1997