81,092
社区成员
发帖
与我相关
我的任务
分享
返回到JSP页面:
[code=Java]
public ActionForward doGetStuInfo(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws IOException{
List<TbStuInfo> stuList = stuService.findStuInfos(...);
JSONArray list = JSONArray.fromObject(stuList );
JSONObject json = new JSONObject();
json.put("stuList", list);
response.setCharacterEncoding("UTF-8");
response.getWriter().print(json.toString());
response.getWriter().close();
return null;
}