Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using AJAX for pagination like in new Emails

Status
Not open for further replies.

sheesh342

Programmer
Mar 28, 2007
9
US
Hi ,
I have a jsp page which is an out put of a lot of queries.
It displays a rows of data depending upon what was sent in the request object.
Each row comes from a combination of atleast 5-6 tables and sometimes, it takes around 4-5 minutes to load the page.
Although the users also understand the depth of this page, but I was thinking of making the UI a bit more graceful.
One option was to do pagination in the backend but since it involves a number of queries, pagination would be kinda tough.
I am using logic:iterate tag to get each of the rows.
Is there a way in AJAX, so that I can limit the number of results to five rows at a time and then by means of an arrow link I should be able to see the next 5 and so on. The static part of the page should not reload. The best part of applying AJAX as I presume would be that most of the server interaction would be unnoticed to the user.
The technoliges I am using for this screen are hibernate and struts.
And ofcourse if javascript is not enabled on the browser, it should gracefully switch to the current method.
 
there's no difference between database paging with ajax and non-ajax paging. all ajax does is permit server interaction without the user seeing a page reload.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top