Jax-RS and Xmlhttp Communication
问题 I have a REST Server in Java JAX-RS and an HTML page. I want to send a JSON array, a username, and an accountID from the HTML page through an xmlhttp POST request by making all of them a single big String so I can use the xmthttp.send() method. The HTML sending code is: function sendData() { var req = createRequest(); var postUrl = "rest/hello/treeData"; var dsdata = $("#treeview").data("kendoTreeView").dataSource.data(); var accID = "onthespot"; var username = "alex"; req.open("post",