Ajax in Servlet

AJAX stands for Asynchronous JavaScript and XML. Ajax is technique, which is implemented using java script(jQuery, AngularJS) to fetch the data from the server and render it to the web page with out refreshing whole page. So using AJAX we can refresh only a portion of the web page as per the business need.

Ajax Example with Servlet :-