Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returning 20 records a page into an HTML page

 
Zubin Wadia
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raja Shekhar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
@ rajzb@yahoo.co.uk
RAJ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic