getting null json grid data from jqgrid in struts2 action class .please guide in proper direction -
$.ajax({ type: "post", url: "senddata.action", datatype:"json", data : datatosend, contenttype: "application/json; charset=utf-8", success: function(response, textstatus, xhr) { alert("success"); }, error: function(xhr, textstatus, errorthrown) { alert("error"); }
});
datatosend getter , setter.. should have parse java array list or have print datatosend
in ajax send data below
data :{"datatosend":data} //where "data" data u want send
and datatype of "datatosend" depends on type of data u send.
Comments
Post a Comment