spring mvc 客户端到服务器端的list参数传递

js中我会封装一个json数组,json数组中会封装一些peson。{personList:{{id:1,name:xxx,age:12},{id:2,name:xx,age:12}}}就是这个意思。在controller中我想要
List<Person> personList来接收,不知道行不行,如果行该如何做。

可以
参数传递的时候,传递一个json串
服务器端解析一下就可以了
我记得有个第三方jar包
可以直接转
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-11-09
如果你是通过js函数里面跳转的话就可以
window.location.ref='XXXXX.action? personList='+personList
这样试试
第2个回答  2012-03-30
怎么解决的?我还没解决 我也需呀 一个lIST 做GRID
相似回答