Solved

Struts2- Pagination with Ajax

Posted on 2010-08-31
4
2,715 Views
Last Modified: 2013-11-11
Hi,
We are using Struts2. And we want to do pagination with ajax. for example if user enters something on top jsp. we want to load bottom jsp using ajax. And the bottom jsp should have pagination. I can do this by using displayTags. But when I click next page in bottom jsp, it relaods the page. So how do I implement ajax  on DisplayTags so I does not reload. I saw ajaxTags but not finding much information on how to implement it. Is their any other  api besides displayTag that has pagination with ajax, if so please provide sample code for struts.

Thanks
0
Comment
Question by:shetty01
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33568880
check this google solution, it has a demo page
http://code.google.com/p/displaytagajaxed/

here is one solution using displaytags with ajax and jquery
http://kevin.mudrick.com/2009/11/23/ajax-loading-sorting-and-paginating-of-displaytag-tables/
0
 

Author Comment

by:shetty01
ID: 33569398
I dont see src code in the first link. I downloaded zip file but no source code and plus it is using displayTag1.1.1.
In second url I see the javascript part, but not sure what he is doing. Their is no full source code their.
0
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 33569857
for first link you need to go to the download tab
http://code.google.com/p/displaytagajaxed/downloads/list

second one is a jquery solution with display tags and ajax, please read carefully
0
 

Author Comment

by:shetty01
ID: 33570318
first one i downloaded the zip file from download tab, and when i unzipped their is nothing in src folder.

second link i dont see full source code. so dont know what jar i need etc.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question