public void updatePham(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
response.setContentType(Constant.CONTENT_TYPE);
LazyValidatorForm actionForm = (LazyValidatorForm) form;
Map<String, Object> aMap = actionForm.getMap();
Map<String, Object> resMap = new HashMap<String, Object>(); boolean resBool = dao.updatePham(aMap); resMap.put(Constant.JSON_SUCCESS, resBool); JSONObject jsons = JSONObject.fromObject(resMap);
try {
response.getWriter().print(jsons);
} catch (IOException e) {
e.printStackTrace();
}
}
HttpServletRequest request, HttpServletResponse response) {
response.setContentType(Constant.CONTENT_TYPE);
LazyValidatorForm actionForm = (LazyValidatorForm) form;
Map<String, Object> aMap = actionForm.getMap();
Map<String, Object> resMap = new HashMap<String, Object>(); boolean resBool = dao.updatePham(aMap); resMap.put(Constant.JSON_SUCCESS, resBool); JSONObject jsons = JSONObject.fromObject(resMap);
try {
response.getWriter().print(jsons);
} catch (IOException e) {
e.printStackTrace();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货