aspose file tools*
The moose likes Servlets and the fly likes Next, Previous Records in a vector-- urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Next, Previous Records in a vector-- urgent" Watch "Next, Previous Records in a vector-- urgent" New topic
Author

Next, Previous Records in a vector-- urgent

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
assignment.
many many thanks
Latha
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Please try to avoid the use of the word "urgent" in your Subject(s).
This is an easy-going, friendly (and FREE) place
Thanks.
[This message has been edited by Tony Alicea (edited September 30, 2000).]


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Next, Previous Records in a vector-- urgent