1.在java对象里封装成JSON对象保存

JSONArray  jsonObject = new JSONArray();

String jsonString="{\"list\":"+jsonObject.fromObject(list).toString()+"}";

request.setAttribute( "list", jsonString );

2.页面接收

var list=JSON.parse('').list;

for(var j=0;j

{

 obj = list[j];

 obj.对象的属性;

}