斯蒂芬大帝
1,test.action :ServletActionContext.getRequest().setAttribute("list",list);return "UI";2,ajax:$.ajax({type : "post",url : "test.action",data : {"id" : id},dataType : "html",success : function(data) {if (data != null) {alert(data);}}});也可以把用JSONArray json = JSONArray.fromObject(list);再把json.toString()设置到AJAX