Hai This gopal Iam developing View and Search module for technology forum.
In the view page I want to display number of threads are there for view, by some query Iam able to get records to resultset object.
Using resultset.next and adding those records to Dto object using setter methods, dto is added to list and list to transferred to next layer..
so I want to dispaly no of records present in resultset object and last() and getRow() methods but unable to add this Dto object.
Can any solve this problem for me Iam very thankful to them.
So you read through the ResultSet, convert each row into an object, and add each object to a list?
In that case the number of rows in the ResultSet is exactly equal to the number of records you added to the list, isn't it? And if this list is any good at all, you should be able to find out how many objects are in the list. So I'm not clear about what your problem is.