Results 1 to 4 of 4

Thread: Paging Problem

  1. #1
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Default Paging Problem

    Hi Buddies,

    I am developing an searching tool...where i struck up with the paging concept..

    meaning if i search in a folder the file is locating.Upto here no issue...i need to findout the solution for how many documents are being came fromsearch .....something like google...if it contains 20 pages then it should display 5 at a time with paging look like:

    1 2 3 4 5 ....20 NEXT(Hyperlink)

    if u have any idea please advise

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    This sounds like a string building problem, nothing to do with paging.
    You want to build a string representing the state/results of your search.
    YOu need to define what the string should look like for different number of pages. You give an example of the display for 20 pages. What should it look like for other values? What is the minimum needed for the ....? What should it look like if the user is looking at a page in the middle?

    Define the full syntax of the string to be built and when the various parts of it should be diplayed.
    [PREV]1...xxxx[....]<max>NEXT

  3. #3
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Default

    i am searching documents and wants to limit the search results 10 per page..if dats exceeds then it should be shownin the second page..same as google search...and the functionality..

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    Have you defined what you want to show and when to show it?
    More than "same as google", you'll need details to decide how to format the string.

Similar Threads

  1. Struts 2 paging problem using display tag...?
    By prabhurangan in forum Web Frameworks
    Replies: 1
    Last Post: 01-15-2014, 09:00 AM
  2. Java Paging Problem
    By 82rathi.angara in forum New To Java
    Replies: 2
    Last Post: 09-29-2008, 03:17 PM
  3. [SOLVED] Display tag paging help..............?
    By prabhurangan in forum Web Frameworks
    Replies: 12
    Last Post: 06-24-2008, 12:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •