Paging like goooooooooooooogle

FYI

Hi guys,

Most of Guys asking how to set page 1,2,3,4 ..... so on ,

so that i post this link regarding paging,

its easy to implement,

Go through this links and create your own paging,

http://www.servletsuite.com/servlets/pagertag.htm

If you want sample example with Database and with out,

please feel free to mail me reg this..

[416 byte] By [drvijayy2k2a] at [2007-11-27 10:23:03]
# 1

Hi,

Thanks a lot for the link. PLS provide me an example.

i wud be happy if i get one such example.

GuruSeethaa at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi,

provide Your mail id here, or send a mail to me regarding this...

my mail id will be display on clicking my id

drvijayy2k2a at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Looks great,

If possible could you please email me the sample code @

paritalak@gmail.com

I would appreciate your help.

Thanks

kris

kris-helpa at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

hi thanks a lot..

thanks..

ravi-kumar-123

ravi-kumar-123a at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

> If you want sample example with Database and with out,

> please feel free to mail me reg this..

Please, don't do that. This topic will become worthless for us and worthful for spambots. Just post the code here or post at least a link to a page where you can view or download the code.

BalusCa at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

> > If you want sample example with Database and with

> out,

> > please feel free to mail me reg this..

>

> Please, don't do that. This topic will become

> worthless for us and worthful for spambots. Just post

> the code here or post at least a link to a page where

> you can view or download the code.

this will be so much fun, watching hundreds of kids post their email address for years and years hoping to get complete homework solutions sent to them by someone who's long gone.

jwentinga at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7

can u give any example for paging the 1000's of database records, in 20 records per page use jsp, servlet or struts.

java_raj_j2eea at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8

I have done this same thing in our project ,

if you need code of feel free to write me.

I will send it to you...

I had used this logic...

1. count the number of records found from search

2.divide the no of record by 10,25 or 50 (depends upon how many records you want to show in a page)

3.the result is in floating value something like 20.144.. round it in to the 21

4.if the TotPage>10 you need the Back and Next option

5.maintain the begin and end counter for printing the page number

6.maintain the Next counter value , NextCounter incremented by one when we click the Next button and decremented by one when we click the back button

ex if you are in 1-10 page link if you click the next you will get 11-20 page links if you again click the next you will get the 21-30 page links

the another main think is Next button should be disable in last page link

I have implented this concept in our project and fully succeed it

MiracleShivaa at 2007-7-28 17:19:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...