How to do the paging while reading from the file !!!

Discussions

Web tier: servlets, JSP, Web frameworks: How to do the paging while reading from the file !!!

  1. I'm able to display the contents of the file in my jsp as a tabular form. I want to apply the paging concept in my jsp page. As i did in my database project there i's sending the next value as a parameter and it worked. But when i retrieving the value from the file then i'm not able to get particular values anyhow i'm using the concepts of getLineNumber() but unable to get the previous one worked. I want to diplay only the first 20 contents of the file then, by clicking the next button he should be able to view the next 20 contents of the file. Please help me out for this problem. If possible send me the codes too it'll very helpful for me. i need this urgent........
  2. Hilarious.
  3. Sick actually.