I am sorry I think i didnt explain it properly .. here is what i wanted
Step1:PageA.jsp(does an asynch call to servletA passing certain parameters)------------------------------>Step2: ServletA(processes the parameters received,creates an object and sets it in the attribute then it calls another jsp page to generate a table on basis of that object. The servlet extracts the html from that jsp page , stores it in a
string and writes it back to PageA.jsp)
Your solution
$('#elementContainingTable').load('/url/that/generates/table');
I believe just loads a portion of a particular page into a specific section.Which is not what i am looking for
Let me recap , the servletA first receives the parameters asynchronously from pageA.jsp on the basis of which it generates an
object and calls the next jsp page.The next jsp page will construct a table on the basis of the object received from the servlet. In your method the page will be called however since it does not have the object necessary to generate the table.The table will be empty. I hope all that i said makes some sense.