Ext grid数据httpProxy显示得不到结果(急救)

1.这是我的界面(代码如下):
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
    <script type="text/javascript" src="extjs/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/jss.js"></script>
<title>this is jsp</title>
</head>
<body>

<div id="grid"></div>

</body>
</html>
2.数据来源(来自jsp界面):<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'aaa.jsp' starting page</title>
  </head>
 
  <body>
  <%
String start = request.getParameter("start");
String limit = request.getParameter("limit");
String json="";
try {
    int index = Integer.parseInt(start);
    int pageSize = Integer.parseInt(limit);

    json = "{totalProperty:100,root:[";
    for (int i = index; i < pageSize + index; i++) {
        json += "{id:" + i + ",name:'name" + i + "',descn:'descn" + i + "'}";
        if (i != pageSize + index - 1) {
            json += ",";
        }
    }
    json += "]}";
    response.getWriter().write(json);
    System.out.println(json);
    System.out.println(index);
    System.out.println(pageSize);
} catch(Exception ex) {
}

%>
  </body>
</html>
数据显示json格式:{totalProperty:100,root:[{id:0,name:'name0',descn:'descn0'},{id:1,name:'name1',descn:'descn1'},{id:2,name:'name2',descn:'descn2'},{id:3,name:'name3',descn:'descn3'},{id:4,name:'name4',descn:'descn4'},{id:5,name:'name5',descn:'descn5'},{id:6,name:'name6',descn:'descn6'},{id:7,name:'name7',descn:'descn7'},{id:8,name:'name8',descn:'descn8'},{id:9,name:'name9',descn:'descn9'}]}
3.js的写入
Ext.onReady(function(){
var cm = new Ext.grid.ColumnModel([
{header:"编号",dataIndex:"id",sortable:true},
{header:"名称",dataIndex:"name",sortable:true},
{header:"描述",dataIndex:"descn",sortable:true}
]);
var dds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'aaa.jsp'}),
reader: new Ext.data.JsonReader({
      totalProperty: 'totalProperty',
    root: 'root'
}, [
{name: "id"},
{name: "name"},
{name: "descn"}
])
});


var grid = new Ext.grid.GridPanel({
el: "grid",
ds: dds,
cm: cm,

bbar: new Ext.PagingToolbar({
pageSize:10,
store:dds,
displayInfo:true,
displayMsg:'显示{0}到{1}条记录,总共{2}条记录',
emptyMsg:'没有记录'
})
});
     grid.render();
     dds.load({params:{start:0,limit:10}});

});

问题:1.为什么我的界面显示不出来数据??用firebug调试可以得到jsp界面的数据
      2.希望大家能给出些详细的解决方案。
谢谢大家了

你可能感兴趣的:(ext数据显示问题)