Hi all, im trying to divide a table in a jsp page (based on the struts architecture) into multiple pages.
This is the approach I was thinking of:
To divide up the pages into rows of ten, length parameter would be set to 10 (length="10") and offset set to 0 (offset = "0") for the first page,
for the second page : length="10" , offset = "10",
for the third page : length="10" , offset = "20" etc.
An object to be created which contains the offset and length of each page.
When the user loads the first page the offset and length are read and applied to the page.
If the user clicks "next" the length is read and added to the offset.
If the user clicks "previous" the length is read and subracted from the offset.
The page is then refreshed.
Any comments/help would be greatly appreciated.