There could be two causes first, if there are no rows that meet the Where condition, you won't get any results. Try printing out the parameters you are passing and run the final resultant SQL to check that.
Second and an application bug :
Do you notice what happened when I formatted this, the while statement is inside the else so, it never gets called if you have results. Also every call to rset.next() will advance the ResultSet to the next record, you will never get the First Record!