if (!isTokenValid(request)) {
return mapping.findForward(BaseConstants.FWD_INVALID_TOKEN);
}
ActionMessages msgs = new ActionMessages();
SystemConfigForm orgInfoForm = (SystemConfigForm) form;
SystemConfigVO orgInfoVO = new SystemConfigVO();
BeanUtils.copyProperties(orgInfoVO, orgInfoForm);
orgInfoVO.setLastModifiedBy(getLastModifiedBy(request));
systemConfigService.updateOrgInfo(orgInfoVO);
msgs.add(BaseConstants.INFO_KEY, new ActionMessage("message.record.updated"));
saveMessages(request, msgs);
resetToken(request);
ServletContext sCtx = request.getSession().getServletContext();
sCtx.setAttribute(BaseConstants.ORGANIZATION_NAME, orgInfoVO.getOrganizationName());
sCtx.setAttribute(BaseConstants.ORGANIZATION_SHORT_NAME, orgInfoVO.getOrganizationShortName());
sCtx.setAttribute(BaseConstants.ORG_EMAIL, orgInfoVO.getOrgEmail());
return mapping.findForward(BaseConstants.FWD_SUCCESS);
}