87,907
社区成员
发帖
与我相关
我的任务
分享
var store =new Ext.data.JsonStore({
autoLoad:true,
proxy:new Ext.data.HttpProxy({url:"http://localhost:8080/rbs/Login_testLogin.action"}),
// data:[{"id":1,"name":"图片","typeValue":"pic"},{"id":2,"name":"视频","typeValue":"avi"}],
fields:["id","name","typeValue"],
})
List<Types> lt = service.findListByParam("from Types types");
JSONArray jsonObject = JSONArray.fromObject(lt);
outputStr = jsonObject.toString();
System.out.println(outputStr);
PrintWriter out = ServletActionContext.getResponse().getWriter();
getResponse().setContentType("text/javascript;charset=GBK");
out.print(outputStr);
return null;