日期:2014-05-16 浏览次数:20636 次
action2:
hashMap=new HashMap<String, Object>();
hashMap.put("caller",caller);
hashMap.put("called",called);
hashMap.put("passage",passage);
hashMap.put("relly",relly);
hashMap.put("callStatus",callStatus);
hashMap.put("flag",flag);
HttpServletResponse response = ServletActionContext.getResponse();
response.setCharacterEncoding("UTF-8");
try {
JSONArray result=JSONArray.fromObject(hashMap);
response.getWriter().write(result.toString());
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}