[ http://jira.codehaus.org/browse/DISPL-212?page=comments#action_39391 ] Bing Qiao commented on DISPL-212: ---------------------------------
Is it possible to direct to the last page if the page number in the request parameter is larger than the total pages? > Table displayed incorrectly with fully loaded last page and page number+1 for > page parameter > -------------------------------------------------------------------------------------------- > > Key: DISPL-212 > URL: http://jira.codehaus.org/browse/DISPL-212 > Project: DisplayTag > Type: Bug > Components: Paging/Sorting > Versions: 1.0 > Reporter: Bing Qiao > Fix For: 1.0 > > > After deleting one record from the table, I want a user to be directed back > to the current page of records spaning multiple pages. > To do this, I direct the user to the same url after deleting that record in > Struts action. > This works fine as long as the record to be deleted is not the only record of > the last page of multiple pages. > For example, 41 records are displayed in 3 pages (20 per page). The url for > the last page with only one record is as follow: > http://fibldnw/test/paydispatch.do?action=payverify&d-16486-p=3 > After deleting the last record, there are only two pages of records left. The > above url will not display correctly. Changing the value of d-16486-p to any > number greater than 3 will direct to the first page correctly however. > This actually applies to any situation where the last page is fully loaded > and the value of page parameter in the request is the total page number plus > 1. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel