Dear Nandhini,
What you're doing is a good techinque, I'll give you a hint using it, as I did previously in one of my applications...
The secret is as Ulf said, it's in the URL,
your URL would look like this one:
ease up, I'll explain how this url became like this:
first you calculate your full records and do some math, to know the
"Total Pages" and for sure you've already decided how many records to have in the page.
Look at these three methods, they would help,
this one is from
Servlet called Pagination for example:
I believe the URL is more easy now,,,

Now to complete this pagination process, some code also needed in your JSP,
have a look please at the following one, in mail.jsp:
This one works perfectly, reply me incase of something foggy,
hope it helps.. have fun..