Integer degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID"));
Integer degreeCurricularPlanID = null; if(request.getParameter("degreeCurricularPlanID") != null){ degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID")); request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID); }
    public ActionForward chooseExecutionDegree(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        HttpSession session = request.getSession(false);        IUserView userView = SessionUtils.getUserView(request);        InfoExecutionDegree infoExecutionDegree;        Integer degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID"));        Object args[] = { degreeCurricularPlanID, new Integer(1) };        try {            infoExecutionDegree = (InfoExecutionDegreeWithInfoExecutionYearAndDegreeCurricularPlan) ServiceUtils                    .executeService(userView, "ReadExecutionDegreeByDegreeCurricularPlanID", args);        } catch (FenixServiceException e) {            e.printStackTrace();            throw new FenixActionException();        }        request.setAttribute("degree", infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree()                .getSigla());        request.setAttribute("executionYear", infoExecutionDegree.getInfoExecutionYear().getYear());        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);                request.setAttribute("executionDegreeID", infoExecutionDegree.getIdInternal());                return mapping.findForward("ExecutionDegreeChosen");    }