I'm trying to display data from a table in a jsp page. Instead of running through the resultset in the jsp page itself, I wanted to fill a 2d string array with the values. Well, you must specifiy a size for a 2d string array and I really won't know how many rows I need. Can anybody tell me how I can find the number of rows inside of a resultset? This way I can init my 2d array after I've run my SQL statement and populated the resultset. Thanks.
Instead of an array, use an ArrayList. Then you don't need to know how long the array is beforehand, because you can add a new element dynamically for each row. [ July 29, 2003: Message edited by: Ron Newman ]