I am creating a servlet that executes a query and accordingly writes out the results to a table in HTML. However, I need to refine it further. I need it to build only for 20 records a page. It needs to have a NEXT and PREVIOUS button to traverse through the records and enable the user to browse accordingly. Does someone know or have code that does this? I know ASP has a paging feature which makes this quite simple to execute. However i am new to JSP/Servlets and I am sure there is an answer to this. JSP code is fine too. Please do help me ... as I really need an answer to this... pretty trivial problem. Thank You. By the way, this is a fantastic forum with some great organization and people. Sincerely, Zubin Wadia.