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();
}
}