How to check whether the Resultset is empty or not ?
I wanna check whether my Result set is empty or not ( I don't want the no of rows it contains..) i'm using this function...
boolean result=myResultSet.isAfterLast() | myResultSet.isBeforeFirst() ;
if (result == true)
{//Result Set is populated
}
else
{//ResultSet Blank
}
Is it ok to do like this ? Or is there any other functanality to do this, since in big appl..i'm using it more than 10-15 times & it's working fine evrywhere except for one jsp where it is returing TRUE everytime ...
Help Appreciated !!

