• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Next, Previous Records in a vector-- urgent  RSS feed

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • 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
assignment.
many many thanks
Latha
 
Desperado
Sheriff
Posts: 3226
5
  • 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
Thanks.
[This message has been edited by Tony Alicea (edited September 30, 2000).]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!