-
need example of struts pagination (3 messages)
- Posted by: majid abdel
- Posted on: July 06 2006 16:57 EDT
Hi, I have a formbean in a seesion, in my jsp I display all the rows using logic:iterate , please how to use jsptags or displtag to use pagination , please your help is appreciated. thank you.Threaded Messages (3)
- Re: need example of struts pagination by Bob Armour on July 07 2006 05:26 EDT
- Re: need example of struts pagination by Jyothish John on July 07 2006 08:25 EDT
- Re: need example of struts pagination by Paul Sinnett on August 19 2006 11:55 EDT
-
Re: need example of struts pagination[ Go to top ]
- Posted by: Bob Armour
- Posted on: July 07 2006 05:26 EDT
- in response to majid abdel
Majid, Have a look at the docs for the struts iterate tag (http://struts.apache.org/1.2.x/userGuide/struts-logic.html#iterate), paying particular attention to the offset and length attributes. Lets say you want 10 records per page - set offset to pageNumber * 10 (Assuming that, internally, pageNumber is zero based) and length to 10. Then provide some mechanism for displaying next/previous/specific page links which post the appropriate value back to the action. I hope this brief description makes sense to you, as I don't have time to provide code samples right now. Let me know if you need more help. -
Re: need example of struts pagination[ Go to top ]
- Posted by: Jyothish John
- Posted on: July 07 2006 08:25 EDT
- in response to Bob Armour
http://displaytag.sourceforge.net this is the best and easiest stuff;) -
Re: need example of struts pagination[ Go to top ]
- Posted by: Paul Sinnett
- Posted on: August 19 2006 11:55 EDT
- in response to Bob Armour
Are you the Bob Armour who worked at Probe back in the previous century? If so I'd love to get back in touch; you can contact me at paul dot sinnett at gmail dot com or look me up on the net. Cheers, Paul.