After implementing some JavaScript validation in JSP, I have come across an issue with my AJAX function. Despite receiving a response from the request (as verified through F12 developer tools), I am unable to view the output.
How can I effectively extract and read the JSON object response within my JSP code?
$.ajax({
type: "GET",
url: "AjaxActionController?",
dataType: "json",
async : false,
data:"leave_Type="+leave_Type,
Success: function(data){
alert(data);
return_Leave = data.LeaveType;
alert(return_Leave);