Map m = new HashMap();
m.put("statusCode", 200);
m.put("message", "操作成功");
m.put("callbackType", "forward");
m.put("forwardUrl", href);
String json = JsonUtil.getJsonString4JavaMap(m);
getResponse().setCharacterEncoding("utf-8");
getResponse().setContentType("text/html; charset=UTF-8");
try {
getResponse().getWriter().write(json.toString());
} catch (IOException e) {
e.printStackTrace();
}
m.put("statusCode", 200);
m.put("message", "操作成功");
m.put("callbackType", "forward");
m.put("forwardUrl", href);
String json = JsonUtil.getJsonString4JavaMap(m);
getResponse().setCharacterEncoding("utf-8");
getResponse().setContentType("text/html; charset=UTF-8");
try {
getResponse().getWriter().write(json.toString());
} catch (IOException e) {
e.printStackTrace();
}