• Post Reply Bookmark Topic Watch Topic
  • New Topic

pagination display issue  RSS feed

 
rajendra k kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • 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..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!