Refresh displaytag table with ajax

Guy van

I am trying to solve this problem:

I have a jsp page with a table created using the dispaytag library and other things.

When I click the button, I would like to generate ajax reload only for the table, and not for the whole jsp page, which correctly displays the table with the table with the created pagebanner and pagelinks tag, increasing and decreasing the elements found.

Is there any solution to solve this problem?

+7
javascript jquery ajax struts2 displaytag
source share
1 answer

Try it.

$.ajax({ type:"POST", url:"yourpage.jsp", data :{ yourdata : yourdata }, success: function(data) { } }); $(".yourtableClass").load("yourpage.jsp .yourtableClass", { yourdata : yourdata }); 
+2
source share

All Articles