SpaceInformation spaceInformation = getSpaceInformationFromParameter(request); setSpaceInformation(request, spaceInformation); Unit responsibleUnit = getExternalResponsibleUnit(request); request.setAttribute("unit", responsibleUnit); return mapping.findForward("manageResponsabilityInterval");
SpaceInformation spaceInformation = getSpaceInformationFromParameter(request); setSpaceInformation(request, spaceInformation); Unit responsibleUnit = getExternalResponsibleUnit(request); if (responsibleUnit == null) { ActionMessages actionMessages = new ActionMessages(); actionMessages.add("", new ActionMessage("error.space.responsability.empty.external.unit")); saveMessages(request, actionMessages); return showSpaceResponsibility(mapping, form, request, response); } request.setAttribute("unit", responsibleUnit); return mapping.findForward("manageResponsabilityInterval");
    public ActionForward prepareAddExternalUnit(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixFilterException,            FenixServiceException, ExcepcaoPersistencia {        SpaceInformation spaceInformation = getSpaceInformationFromParameter(request);        setSpaceInformation(request, spaceInformation);        Unit responsibleUnit = getExternalResponsibleUnit(request);        request.setAttribute("unit", responsibleUnit);        return mapping.findForward("manageResponsabilityInterval");    }