Is it possible to reuse a command object between submits? I know that I can reuse a command object between the original GET and the subsequent POST (via the sessionForm bean attribute), but what I want to is reuse it between POSTs. The reason for this is because I have a paginated search page, whereby the search criteria appears above a paged table of results. When the user navigates between the result pages, I obviously don't want to requery the database. In order to achieve this I'm currently having to cache the results in the session once they've beeen retrieved, and then adding them to the new command object when the user navigated between pages.
Nick


Reply With Quote
How many times do your users actually click through to the next page, then the next page etc.? For example, google often returns 100s of 1000s or rows, but I hardly ever go past page 2 or 3, so storing all that data on the server side is pointless.