Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在spring控制器中处理二维数组,我正在通过ajax_Ajax_Spring_Jsp_Spring Mvc_Multidimensional Array - Fatal编程技术网

如何在spring控制器中处理二维数组,我正在通过ajax

如何在spring控制器中处理二维数组,我正在通过ajax,ajax,spring,jsp,spring-mvc,multidimensional-array,Ajax,Spring,Jsp,Spring Mvc,Multidimensional Array,我的ajax代码如下所示 function display() { $.ajax({ type: "POST", url: "/CRM_Spring/ViewAccessRights/multipleUpdate", data: {getRights: getRights}, success: function(msg){

我的ajax代码如下所示

    function display()
       {
        $.ajax({

            type: "POST",

            url: "/CRM_Spring/ViewAccessRights/multipleUpdate",

            data:  {getRights: getRights},
            success: function(msg){

                   alert("successfully transfered");

            }

    }); 


  }
getRights是我的二维数组


但是,我不知道如何在我的spring控制器中处理它。有人能帮我处理相同的问题吗。

我认为缺少双配额,请更换

data : {getRights: getRights}, 


在映射功能中,您可以获得getRights

您是否可以超过服务器响应值“msg”的问题?json或xml?@NavenRamawat请求不会继续。它不会打印任何内容。请使用firefox的firebug插件,这有助于识别是否发生任何js错误。-是的,我使用方法作为POST。检查第2页-2D数组创建中的所有1-Jquery
data:  {"getRights": getRights},
@RequestParam(value = "getRights", required = true) String[][] RightsArray