• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

display info. page wise (pagination)

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Plz any one of u help me in this regard...

how to do the pagination in my scenario???

Thanks.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Patience is a virtue
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic