Integer degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID")); request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);
Integer degreeCurricularPlanID = null; if(request.getParameter("degreeCurricularPlanID") != null){ degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID")); request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID); }
    public ActionForward viewTeam(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws FenixActionException, FenixServiceException, FenixFilterException {        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);                Integer degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID"));        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);                        Integer infoExecutionDegreeID = null;        Object[] infoArgs = { degreeCurricularPlanID, new Integer(2) }; 	    InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegreeWithInfoExecutionYearAndDegreeCurricularPlan) ServiceUtils	    .executeService(userView, "ReadExecutionDegreeByDegreeCurricularPlanID", infoArgs);        infoExecutionDegreeID = infoExecutionDegree.getIdInternal();        request.setAttribute("infoExecutionDegreeId", infoExecutionDegreeID);        Object[] args = { infoExecutionDegreeID };        List coordinators = new ArrayList();        try {            coordinators = (List) ServiceUtils.executeService(userView, "ReadCoordinationTeam", args);        } catch (FenixServiceException e) {            throw new FenixActionException(e);        }        Boolean result = new Boolean(false);        Object[] args1 = { infoExecutionDegreeID, userView };        try {            result = (Boolean) ServiceUtils.executeService(userView, "ReadCoordinationResponsibility",                    args1);        } catch (FenixServiceException e) {            throw new FenixActionException(e);        }        request.setAttribute("isResponsible", result);        request.setAttribute("coordinators", coordinators);        return mapping.findForward("coordinationTeam");    }