Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2860
  • Last Modified:

Struts2- Pagination with Ajax

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
shetty01
Asked:
shetty01
  • 2
  • 2
1 Solution
 
Gurvinder Pal SinghCommented:
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
 
shetty01Author Commented:
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
 
Gurvinder Pal SinghCommented:
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
 
shetty01Author Commented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now