i want pass ajax call without passing data.what correct way getting error 500.i tried below : using spring mvc.method calling has error.
function loaddata(){ $.ajax({ url: 'listcustomer', data: { }, error: function(xhr, statustext, err) { alert("error"+xhr.status); }, success: function(data) { alert(data); }, type: 'get' }); }
you remove data, removing data!?
$.ajax({ url: 'listcustomer', error: function(xhr, statustext, err) { alert("error"+xhr.status); }, success: function(data) { alert(data); }, type: 'get' }); but 500 internal server error. means it's error on server. question, therefore, shouldn't geared around you're doing on client - until you've found out error on server is. otherwise you're poking around in dark until pass parameters needs, that's if server error due parameter issue.
if server yours, check logs, debug it, whatever have find out exception is.
Comments
Post a Comment