| Author |
invalid cursor state
|
Naadir Peterson
Ranch Hand
Joined: Sep 22, 2004
Posts: 37
|
|
gettin an invalid cursor state exception when i try to get a record from the database using jsp.. its like: ResultSet attempt = statement.executeQuery("SELECT Attempts FROM Users WHERE UserName = '" + username + "'"); String attemptTry = attempt.getString("Attempts"); i think the problem is the getString method the "Attempts" is named right way out of the DB... the resultset does return something but i still get the error Attempts is a smallint in the database.. is it coz of that? thanx
|
 |
Santosh Jagtap
Greenhorn
Joined: Sep 20, 2004
Posts: 23
|
|
Hi try this ResultSet attempt = statement.executeQuery("SELECT Attempts FROM Users WHERE UserName = '" + username + "'"); attempt.next(); String attemptTry = attempt.getString("Attempts");
|
Santy
|
 |
 |
|
|
subject: invalid cursor state
|
|
|