I have one jsp page, on load of jsp, two radio button is there, on click of first radio button, i am doing an ajax call with no data and it will go to controller and method will return a list object but it is not even hitting the controller method
My ajax code is like this :
$("#radio1").click(function(){
alert('success');
debugger;
$.ajax({
method : 'GET',
url : 'ConnectionStringDetails',
data: {},
success: function(data){
alert('True');
},
error: function() {
alert('unsuccessfull');
}
});
and controller method is like this:
@RequestMapping("/ConnectionStringDetails")
@ResponseBody
public List<ConnectionString> ConnectionStringDetails()
{
List<ConnectionString> conndetail=null;
System.out.println("ConnectionStringDetails");
conndetail=bdpService.getSourcesData();
return conndetail;
}