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.
posted 16 years ago
Hi.. First display 20 records... havd buttons...NEXt..PREVIOUS upon pressinf NEXT..u have 2 go to DB Skip 20 records... Display from 21 record... PREvipus...also same thind... Have 2 parameters for the buttons.. Startingrecord & ending records and manage it... Hope U GOT IT.. any probs @ email@example.com RAJ