Solved

Struts2- Pagination with Ajax

Posted on 2010-08-31
4
2,663 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now