@Override public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { PropertiesForm pForm = (PropertiesForm) form; HttpSession session = request.getSession(); WebUser user = SessionUtils.getWebUser(session); WebUserPreferences preferences = user.getWebPreferences(); ActionForward forward = checkSubmit(request, mapping, form); if (forward != null) { return forward; } if (!pForm.isDisplayOnDash()) { DashboardUtils.removePortlet(user, pForm.getPortletName()); } ProblemResourcesPortletPreferences problemResourcePreferences = pForm.getProblemResourcesPortletPreferences(); preferences.setProblemResourcesPortletPreferences(problemResourcePreferences); session.removeAttribute(Constants.USERS_SES_PORTAL); return mapping.findForward(RetCodeConstants.SUCCESS_URL); }