各类返回
Struts2Utils.renderHtml("1", "encoding:GBK"); PrintWriter out; JSONObject jo = new JSONObject(); response.setCharacterEncoding("gbk"); response.setContentType("text/html; charset=GBK"); jo.put("complete", restr); out = response.getWriter(); out.print(jo); out.close(); response.getWriter().write("");
jQuery.parseJSON(result) == true