This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes large result sets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "large result sets" Watch "large result sets" New topic
Author

large result sets

Sreenivas Vulli
Greenhorn

Joined: Mar 24, 2003
Posts: 2
Hi,
I am using struts freamework to develop a project. I have a need to dispaly large results on the jsp page with search capability, I have
to show only 20 results per page and need to have next and previous buttons to navigate the results that I retrived from database. I also
need to provide the user a text box where he can enter a value (say a telephone number), and I sould be able to show the user only the
record containing that field value. Is there any pattern in struts frame work which can provide me this and what is the best way to handle this situation. I need not goto the databse to get new results
each time b'cos my database does not change.
Thanks
vulli
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

What you are looking for is commonly refered to as resultset paging or paged resultsets. There have been multiple conversations on it in the JDBC forum, and I recommend a search there first.
One solution that has been quite popular (although I'm not sold) is the Data List Handler pattern. Details are available here
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: large result sets
 
Similar Threads
Pagination
what if search results are very large...
AJAX Frameworks that integrate with Struts
Struts: search page functionality
Unable to use one struts2 tag inside another