论坛首页 AJAX版 YUI

如何将后台传过来的json数据,读取到gird里呢?

浏览 1516 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
时间:2007-08-30 关键字: json ext-yui
如何将后台传过来的json数据,读取到gird里呢?
public TrxData CashImpla(TrxData trda) throws Exception {
		String s=trda.getParaInfo("a").toString();
		System.out.println(WebTools.codeToLocal(s));//the web input values
		List li=BaseDBBean.executeQuery("select * from m_user");
		//trda.ExecuteUpdate(sql);
		trda.getParaInfo().put("u", li);//out list
		
		JSONArray ja = JSONArray.fromObject(li);  //out json
		String json = ja.toString();
        System.out.print(json);
        trda.getParaInfo().put("json", json);
        
		return trda;
	}
   
时间:2007-08-30
显示层页面,如何将json数据填充到yui-ext的分页表格里呢...请...指点
   
0 请登录后投票
时间:2007-08-30
请参见:

http://extjs.com/forum/showthread.php?t=7481
   
0 请登录后投票
时间:2007-08-31
fangzhouxing 写道


Hi,mophi
Thanks a lot !
   
0 请登录后投票
时间:2007-08-31
fangzhouxing 写道

Your network account book is very good, whether shares the source code, studies mutually!
   
0 请登录后投票
时间:2007-08-31
引用
Your network account book is very good


我不是mophi,我也是向人家学习的,有问题到extjs论坛上去吧.
   
0 请登录后投票
论坛首页 AJAX版 YUI

跳转论坛:
JavaEye推荐
    快速回复 引用上一条消息 (Alt+S)