File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Next, Previous Records in a vector-- urgent

Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I have to create a class it is just like vecort which holds objects(records) and that class will be used by SERVLET, JSP, and EJB.
this class stores the objects (like records)
first we set the page size for 30 to display on browser
1)int getPageSize()
if i have 100 records in this class, i should show 30 each time to user,and i should write a method called getPageSize()
when servlet calls this page before it disply records, the method should return 30, second 30, third 30, fourth time 10 only. how do i write the method implementation for that.
2) boolean isMore() boolean isPrev()
this is just like PageUP and PageDoewn Or <-- -->
when u click on Forward arrow it should say yes or no depending upon the records that we have in the class
3) list(position, action)
say current page= 0 and we call this method we should get current page=1
again u call this method u should get currentpage=2
can please anybody help me to find the code related to this
many many thanks
Tony Alicea
Posts: 3226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try to avoid the use of the word "urgent" in your Subject(s).
This is an easy-going, friendly (and FREE) place
[This message has been edited by Tony Alicea (edited September 30, 2000).]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic