srinivasan - 2008-05-14

I am using pagination using display tag,

It will display as below,
In this,

158 items found, displaying 1 to 15.[First/Prev] 1, 2, 3, 4, 5, 6, 7, 8 [Next/Last]

Name Manager User
embed sap srin
vkb NSS Lis

savebutton

By default it will display 1 st page.
If I am choosing the 6 th page in pagination,it will display corresponding rows as the above.
I choose one row and clicked savebutton,it will take to separate action. And again it is redirecting to page 1 instead of page 6.
So,In all corresponding actions I am maintaining the current page clicked (using display tag table properties) say for Eg: 6 and retrieve back in jsp.
As,
String currentPage = (String) request.getAttribute("currentPage");
And i am getting correct value as "6".

I am trying to override display tag properties to get page 6 as well as in link display as page 6 in bold.
<display:setProperty name="paging.banner.page.selected"
value="<%=currentPage%>" />
I am able to get page 6 data.
But I am getting this link as wrong.

505 items found, displaying 76 to 90.[First/Prev] 6, 2, 3, 4, 5, 6, 7, 8 [Next/Last]

Can any one help in this regard.

I referred ,

http://displaytag.sourceforge.net/11/configuration.html

Can any one correct here what I am doing wrong in getting this link displayed wrongly and how to correct it.

Thanks,
Srins.