please post the code that deals with the cursor maybe..
Joined: Dec 12, 2001
Here are part of my codes... stmt = con.createStatement();
//Execute an SQL query, get a resultSet rs=stmt.executeQuery("select userId, Password from security where userId ='"+userId+"' and password ='"+password+"'"); rs.next(); userId = rs.getString("userId"); stmt.close();
Roy Ben Ami
Joined: Jan 13, 2002
check if there is somthn in the resultSet. try the if(rs.next()) like Jamie suggested above.