Using JSON-RPC in Struts2
问题 I use the following JavaScript/jQuery function to make a remote procedure call. <script src="../js/jquery-1.8.0.min.js" type="text/javascript"></script> <s:url var="testJsonUrl" action="testJsonAction"/> var timeout; var request; $(document).ready(function(){ $("#btnUser").click(function(){ if(!request) { request = $.ajax({ datatype:"json", type: "GET", data: JSON.stringify({jsonrpc:'2.0', method:'getUser', id:'jsonrpc'}), contentType: "application/json-rpc; charset=utf-8", url: "<s:property