/* * ajax删除数据 */ @Action(value = "role_delRole") public String delRole() { result = new JSONObject(); if (roleId != null) { result.put("nu", roleService.deleteRole(roleId)); String[] ids = roleId.split(","); for (String str : ids) { request.getServletContext().removeAttribute("role_" + str); } result.put("result", 1); } return "json"; }