User Profile
Collapse
-
Yes I understand Dormilich.But what I am having problem is my json format form javascript. I am not been able to get correct jsonstringarray in javascript.As per above my code,I am taking values from every dropdown event change.and wanting to save those data to servlet. since my servlet could not loop through becuase of json format. Thank you. -
Is it the right format? How can I loop through this value in servlet?Leave a comment:
-
Yes I set as application/json to it. I am getting json value as [{ "AccountNo" : "89348734", "AccountTyp e": "Credit", "Account Type_Val": "21", "AccountStatus" : "Invalid" }] Thank you.Leave a comment:
-
how to send javascript array to servlet using json
...Code:success : function(responseJson) { var tbody = $("#Account"); alert("JSonResponse: " + responseJson); $ .each( responseJson, function(index, account) { // Iterate over the JSON array. var value = ATYpeMap[account.AccountTypeID]; $('<tr>') .appendTo(tbody) // CreateLast edited by Dormilich; Dec 6 '13, 08:47 AM. Reason: Please use [CODE] [/CODE] tags when posting code.
No activity results to display
Show More
Leave a comment: