My current application requires me to provide a "scrollable" set of results if those results number more than a page of a small set (say, 10). Something like "Pages : 1 2 3 4 5", etc., with each number being a link to the corresponding page of results. What is the best way to handle this? I would think that using a collection of beans, with each bean representing a result from that database, would do the trick. Is this the best way, or is there another way? Are there any code samples/examples anywhere so I can get an idea of how to do it? I am not using a version of JDBC that supports scrollable ResultSets.
There is no 'best solution' for this problem, it depends too heavily on your requirements. (eg if you are gathering indexes only you might store them on the session, but if you are loading large amounts of data you don't want this on the session) There have been a number of good discussions in the Servlets, JSP and JDBC forums and I recommend a search first. (I'll have a look and post some links if I get a chance) Dave