struts2和jquery easyui dategrid 结合使用的时候,action返回的JSON对象,在jsp页面的dategrid中不显示。。。
这是action代码:
public String loadRylist(){
System.out.println("查询人员");
Map map = new HashMap();
userlist=BmglService.findBmRy(Id);
for(Users u:userlist){
System.out.println(u.getUsername());
System.out.println(u.getBirthday());
}
this.total=userlist.size();
map.put("total", total);
map.put("rows", userlist);
try {
resultObj=JSONObject.fromObject(map);
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("json---------------------------"+resultObj);
return "root";
}
这是action打印出来的JSON 对象(resultObj)参数:
json---------------------------{"total":2,"rows":[{"birthday":"2010-12-12 00:00:00.0","bm_id":2001001,"cellphone":"13636363636","education":"大学大学","email":"619991254@qq.com","folddate":"2010-12-12 00:00:00.0","id":15,"job":"11111111","nation":"11111111","password":"11111111","remark":"好好好","resume":"好好好","sex":"11111111","telphone":"2010-12-12","username":"位庄人员","usernum":0},{"birthday":"2010-12-12 00:00:00.0","bm_id":2001001,"cellphone":"13636363636","education":"大学大学","email":"619991254@qq.com","folddate":"2010-12-12 00:00:00.0","id":16,"job":"11111111","nation":"11111111","password":"11111111","remark":"好好好","resume":"好好好","sex":"11111111","telphone":"2010-12-12","username":"位庄人员2","usernum":0}]}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论