ActionErrors errors = new ActionErrors(); try { ServiceManagerServiceFactory.executeService(userView, "EditCustomizationOptions", args); } catch (NotAuthorizedFilterException e) { errors.add("notResponsible", new ActionError("label.notAuthorized.courseInformation")); saveErrors(request, errors);
ActionMessages errors = new ActionMessages(); try { ServiceManagerServiceFactory.executeService(userView, "EditCustomizationOptions", args); } catch (NotAuthorizedFilterException e) { errors.add("notResponsible", new ActionMessage("label.notAuthorized.courseInformation")); saveErrors(request, errors);
    public ActionForward editCustomizationOptions(ActionMapping mapping, ActionForm form,	    HttpServletRequest request, HttpServletResponse response) throws FenixActionException,	    FenixFilterException {	DynaValidatorForm alternativeSiteForm = (DynaValidatorForm) form;	HttpSession session = request.getSession(false);	session.removeAttribute(SessionConstants.INFO_SECTION);	Integer objectCode = getObjectCode(request);	String alternativeSite = (String) alternativeSiteForm.get("siteAddress");	String mail = (String) alternativeSiteForm.get("mail");	String initialStatement = (String) alternativeSiteForm.get("initialStatement");	String introduction = (String) alternativeSiteForm.get("introduction");	Boolean dynamicMailDistribution = (Boolean) alternativeSiteForm.get("dynamicMailDistribution");	IUserView userView = getUserView(request);	Object args[] = { objectCode, alternativeSite, mail, dynamicMailDistribution, initialStatement,		introduction };	ActionErrors errors = new ActionErrors();	try {	    ServiceManagerServiceFactory.executeService(userView, "EditCustomizationOptions", args);	} catch (NotAuthorizedFilterException e) {	    errors.add("notResponsible", new ActionError("label.notAuthorized.courseInformation"));	    saveErrors(request, errors);	    return mapping.getInputForward();	} catch (FenixServiceException e) {	    throw new FenixActionException(e);	}	ISiteComponent instructionsComponent = new InfoSiteInstructions();	readSiteView(request, instructionsComponent, null, null, null);	session.setAttribute("alternativeSiteForm", alternativeSiteForm);	return mapping.findForward("viewSite");    }