This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi , For the below mentioned code I am getting the invalid cursor state when the query does not return any result from the database.Please let me know how to tackle this situation so that invalid cursor state can be handled
Connection connection=new ForumConnection().getConnection(); ResultSet resultset=null; /* ** Writting and executing query for getting usernames and respective password from Login table */ queryLogin="select * from Login where username='"+username+"';";