• 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

pagination display issue

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am new to this forum but as a developer not new to java programming so I have lots of questions to ask.

first issue is : i have developed a pagination logic to add to the user facing JSP. since the page is created by so many different companies and different developer it was really very hard to know the complete logic and references of all the functions and logic on this page.

so i decided to write an independent logic for page number display.
Logic:
1.> there will be 4 cards shown per page.
2.> there can be maximum 4 pages shown on the page with next and prev button.
3.> the prev and next should either be disabled or disappear according to the page navigation status.

I am attaching the HTML code which simulates the above logic but my request is if any one of you can look at it and suggest better soln or add robustness to it will be great.

i am sorry i am unable to attach the code here because of some tag issue.

can anyone please tell me how to attach my code to this topic.

thanks
Raj
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can use UBB Code to paste you source code inside..
what is UBB Code?

and for pagination logic look inside javaranch Paging
hope it helps..
 
reply
    Bookmark Topic Watch Topic
  • New Topic