Hi Guys
I have a mail DTO and a mailDAO - The mailDAO will get a List of mailDTO Objects and send them back to the
servlet. Now, I also need to handle pagination, like (1) how many records are being viewed, (2) max records avaible, (3) whether the next/previous links should be available, (4) hold the new links for the previous/next if they are enabled. So as a result I have created another DTO called MailPagination and use that in my MailDAO to get all the relevent data. Now, my questions are, (1) Is this a good way of handling this problem ? And (2) do you think I should create a letterPaginateDAO for the DTO ?
EDIT: I just realised I will also need pagination for my contacts and drafts too.