}
public ActionForward updateGroup(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String currentUserName = null;
GroupRelation group = null;
try {
currentUserName = UserUtil.getCurrentUserName(request);
JSONObject jsonObject = readJson(request);
group = (GroupRelation) JSONObject.toBean(jsonObject, GroupRelation.class);
//获得父分组并设置父子关系
long parentId = jsonObject.getLong("parentId");
log.debug("分组<" + group.getGroupName() + ">,parentId=" + parentId);
GroupRelation parentGroup = (GroupRelation) getBaseManager().get(GroupRelation.class, parentId);
//获得并设置更新字段
GroupRelation tempGroup = (GroupRelation) getBaseManager().get(GroupRelation.class, jsonObject.getLong("id"));
tempGroup.setGroupName(group.getGroupName());
tempGroup.setParentGroup(parentGroup);
tempGroup.setRemark(group.getRemark());
getBaseManager().update(tempGroup);
print(response, RESBONSE_SUCCESS);
log.info(currentUserName + ">成功修改分组[" + group + "]信息");
} catch(JSONException je) {