In jsp I am writing rs.getXXX() methods. If it is new mail id also it is entering into if condition in the above given java code. and putting some value in session. In jsp, when it comes rs.getXXX() method it is saying
INVALID CURSOR STATE
because no record exists with that mail id. It is unable get the values..
My problem wil be clear if it doesn't enter into if condition in Java program(shown in above query).