using ajax is not the major task in java , main idea of ajax is the send the request to the without refresh the page , but at server side there is nothing to worry about , because ajax request same a normal request the
servlet and
jsp handle these ajax request as a normal request . so just read about java servlet and jsp and ajax , there are several online tutorial.