@Override public ActionForward render( ActionMapping actionMapping, ActionForm actionForm, PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) throws Exception { try { ActionUtil.getOrganization(renderRequest); } catch (Exception e) { if (e instanceof NoSuchOrganizationException || e instanceof PrincipalException) { SessionErrors.add(renderRequest, e.getClass()); return actionMapping.findForward("portlet.users_admin.error"); } else { throw e; } } return actionMapping.findForward( getForward(renderRequest, "portlet.users_admin.edit_organization")); }
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { try { ActionUtil.getOrganization(req); } catch (Exception e) { if (e instanceof NoSuchOrganizationException || e instanceof PrincipalException) { SessionErrors.add(req, e.getClass().getName()); return mapping.findForward("portlet.enterprise_admin.error"); } else { throw e; } } return mapping.findForward(getForward(req, "portlet.enterprise_admin.edit_organization")); }