Here is the tag library for the pagination.....but where is the page
numbers like 1,2,3,...etc ??
How do i create page numbers 1,2,3..etc with this tag library ?
LINK :
http://displaytag.sourceforge.net/10/tagreference-displaytag-12.html
this link says,
Example:
=======
<display:table name="someList" export="true" id="row"
requestURI="MyAction.do">
<display:column sortable="true" title="ID"> <c:out
value="${row.id}"/> </display:column>
<display:column property="email" autolink="true"/>
<display:column property="description" title="Comments"/>
</display:table>
i dont see, how the page numbers are created here ......how do i get
the page numbers then ?
i would like the pagination like [First/Prev]1,2,3[Next/Last]
look here http://displaytag.sourceforge.net/11/
in the second example, they have this type of paging.......but nowhere
they have mentioed how they are creating this type of paging.
can you help please to understand and make this thing ?
ragards
Joe Attardi - 23 Jan 2006 14:39 GMT
> How do i create page numbers 1,2,3..etc with this tag library ?
In your <display:table> tag, you need to set the 'pagesize' attribute.
When a pagesize is set, the displaytag library will break the list of
objects into various pages. The page links will be added at the bottom.
Example:
<display:table name="someList" export="true" id="row"
requestURI="MyAction.do" pagesize="10">
...
</display>
Hope this helps!

Signature
Joe Attardi
gk - 24 Jan 2006 04:35 GMT
hi,
i appreciate your help.
thank you very much.
it was a big help to me.
will you please tell how this type of pagination is done ? like below
[First/Prev]1,2,3[Next/Last]