各类返回

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

  

posted @ 2015-10-15 14:51  雪卜  阅读(145)  评论(0编辑  收藏  举报