I know Question is a little ambiguous,But i am unable to describe it in simpler language.
Problem: I want to get a chunk of data from database using ajax with jquery.I know how to get data from database and send it as response but Problem is how to form request in "ajax with jquery" and get the response.
After that I need to pass "what we get from Database on client-side" in a function(Javascript) which can do something depending on the response.
I will be using a jsp page to send request. Request from ajax will go to servlet, and again response will come to same jsp page.