我最近才开始用ext , 一些问题不是很明白, 想请教下大家。 后台是用java的
var eduStud_cm = new Ext.grid.ColumnModel([new Ext.grid.RowNumberer(),{
header : '学号',
dataIndex : 'number',
sortable : true,
width : 100
} , {
header : '专业代码',
dataIndex : 'major',
renderer:majorCode,
width : 100
},{
header : '院系',
dataIndex : 'classId',
rederer:classSchool,
width : 100
}])
渲染函数是: var classSchool_Reader = new Ext.data.JsonReader( {
root : 'list',
totalProperty : 'totalCount',
id : 'id',
successProperty : '@success'
}, [ {
name : 'classSchool',
mapping : 'classSchool'                       
}]
);

var classSch_ds=new Ext.data.Store( {
proxy : new Ext.data.HttpProxy( {
url : 'educationalManage/educationalManageAction!getClassSchool',
}),
reader : classSchool_Reader
});

function classSchool(value,p,record){
classSch_ds.load(
{
params: { 'pageMessage1': 'value' }
});
return classSch_ds.getAt(0).get('classSchool');
}
后台函数是
public String getClassShool(){  
String name=educationalManageService.getClassDAO().getClass(this.pageMessage1).getClassSchool();
this.setJsonString("{success:true,totalCount : "+1 + ", list:[\"classSchool\":\"" + name + "\"]}");
    return "success";
}请教下大家  这样写有什么问题吗? 要怎么改?
return classSch_ds.getAt(0).get('classSchool');  这句有什么错误码