• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Display The Records In Jsp Page  RSS feed

 
Kumar Naidu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

i am Display the Records in Jsp Page using Arralylist How to Break the Every 20 Records That Arraylist contains 20 Records Give me any Examples source code.

Vinay
 
Avneet Singh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you want make a page scrollable with each page showing 20 records?

If thats the case then just use a control i.e a counter that you maintain across your pages to extract value from the arraylist.

If this is the scenario tel me il tel you hw to do it .

extract the first 20 value break the loop give a next(pointing to same page) link in jsp, pass on the counter value with the link for next. and then again extract values from the position of the counter value.

use method get(counter) in arraylist to retreive values on the jsp page.
remember counter is the value you will be maintaining while going across the pages.

If you want a sample tel me il write it and give it to you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!