Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 12625 invoked from network); 19 Dec 2005 04:38:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 04:38:40 -0000 Received: (qmail 43091 invoked by uid 500); 19 Dec 2005 04:38:38 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 42993 invoked by uid 500); 19 Dec 2005 04:38:37 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 42982 invoked by uid 99); 19 Dec 2005 04:38:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 20:38:37 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [210.18.86.2] (HELO mail.networkprograms.com) (210.18.86.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 20:38:34 -0800 Received: from pprabaharan1 ([192.9.202.51]) by mail.networkprograms.com (8.13.4/8.13.4) with SMTP id jBJ4ZUng029702 for ; Mon, 19 Dec 2005 10:05:30 +0530 Message-ID: <000901c60456$189dc850$33ca09c0@networkprograms.com> From: "P Prabaharan" To: "Tag Libraries Users List" References: <00ca01c60172$71c2d010$33ca09c0@networkprograms.com> <20051218051148.GB9009@poe.swapsimple.com> <43A5832F.3040305@eunet.no> Subject: Re: Pagination source code Date: Mon, 19 Dec 2005 10:08:44 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Scanned-By: MIMEDefang 2.52 on 192.9.202.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you luca. It is a greate news for me..I will try to follow the same approach.If possible please send me the code it would be very greatful to you.. Thanks&Regards P.Prabahar ----- Original Message ----- From: "Luca Passani" To: "Tag Libraries Users List" Sent: Sunday, December 18, 2005 9:11 PM Subject: Re: Pagination source code > > I asked a similar question a few months back. It appears that pagination > is considered business-logic by some and view by others. > Personally, I found that the following approach worked really well for > me (it was a struts application): > - I considered pagination part of the business logic > - I created some java utility methods to calculate the different > "ranges" for the pages, based on the number of items I have to manage > (in particular, I can handle nicely the case where there are just a few > items and I don't need pagination at all). Also, I could have easily > made page size parametric too. > - I exported the range value as Context parameters > - in the JSP view I used JSTL variables to access the parameters and > build navigation links between pages without any scriptlets > > this was powerful, simple and flexible, but then again, that was just me. > > Luca > > erh@swapsimple.com wrote: > > >On Thu, Dec 15, 2005 at 05:54:07PM +0530, P Prabaharan wrote: > > > > > >>Hello all, > >> > >>I am in the urgent position to implement pagination in struts. I am not in the position to use custom tags.becoz already many pages were made. I need to catch all the records and do pagination.If any one have code then please send to me. thanks to all > >> > >> > >>Thanks&Regards > >>P.Prabaharan > >> > >> > > > > Assuming this is a non-html response of some kind (since pagination of > >an html page doesn't make any sense), you might want to take a look at > >writing a filter using the Filter interface and the tag in > >your web.xml. That, however, has nothing to do with the standard taglibs > >so if you need help with that you should go ask on some other list. > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org