Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Struts2- Pagination with Ajax

Posted on 2010-08-31
4
Medium Priority
?
2,826 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
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:
Gurvinder Pal Singh earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
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…

722 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