hi
i was using JDBC in a program when i got this problem. i had 2 buttons 'next'and 'back' to browse thro' the records in a table. i got the records into a ResultSet object with an sql query. the 'next' button works fine, but the 'back' button gives an exception like this
"The resultset is TYPE_FORWARD_ONLY" something like that. this happens when the line
rs.previous() is encountered. (same thing happens for methods like rs.first()).
i tried to use a method setFetchDirection() of the resultset class but that failed too. how do i move back in the resultset? plz help.
i vote for any answer i find useful.
luv
Karthik.
i was using JDBC in a program when i got this problem. i had 2 buttons 'next'and 'back' to browse thro' the records in a table. i got the records into a ResultSet object with an sql query. the 'next' button works fine, but the 'back' button gives an exception like this
"The resultset is TYPE_FORWARD_ONLY" something like that. this happens when the line
rs.previous() is encountered. (same thing happens for methods like rs.first()).
i tried to use a method setFetchDirection() of the resultset class but that failed too. how do i move back in the resultset? plz help.
i vote for any answer i find useful.
luv
Karthik.