Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

display info. page wise (pagination)

 
Ja vardhan
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guyz,
My problem is little bit differant ... am not displaying the records from database.

I am reading all the files from one directory and displaying them using JSP.
code:==============>

File oFile = new File("D:\SPCONFIG\TRADES");
File files[] = oFile.listFiles();
for(int i = 0; i < files.length; i++)
{
display file info here...
}

Now i might have 100 or 200 files in the directory, I want to dispaly 10 files in a page and I should provide next and previous buttons ...

Another important thing is ....generally we can set the all files in to some collection
and we roll out.. but according to my scenario I need to read the directory again and again bcoz am doing some file name modification operation in mean time...

Pls spend few minits to send ur valuble thought...
Thanks.
 
Ja vardhan
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plz any one of u help me in this regard...

how to do the pagination in my scenario???

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65534
108
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!