Integer degreeCurricularPlanID = (Integer) searchExecutionCourse.get("degreeCurricularPlanID"); request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);
    public ActionForward getExecutionCourses(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) session                .getAttribute(SessionConstants.MASTER_DEGREE);        DynaActionForm searchExecutionCourse = (DynaActionForm) form;        // Mandatory Selection        Integer executionPeriodOID = null;        if (((String) searchExecutionCourse.get("executionPeriodOID")) != null) {            executionPeriodOID = new Integer((String) searchExecutionCourse.get("executionPeriodOID"));        } else {            executionPeriodOID = new Integer(request.getParameter("executionPeriodOID"));        }        request.setAttribute("executionPeriodOID", executionPeriodOID.toString());        // Optional Selection        Integer curricularYearOID = null;        InfoCurricularYear infoCurricularYear = null;        if (searchExecutionCourse.get("curricularYearOID") != null                && !searchExecutionCourse.get("curricularYearOID").equals("")                && !searchExecutionCourse.get("curricularYearOID").equals("null")) {            curricularYearOID = new Integer((String) searchExecutionCourse.get("curricularYearOID"));            infoCurricularYear = new InfoCurricularYear();            infoCurricularYear.setIdInternal(curricularYearOID);            request.setAttribute("curricularYearOID", curricularYearOID);        } else {            if ((request.getParameter("curricularYearOID") != null)                    && (request.getParameter("curricularYearOID").length() != 0)                    && (!searchExecutionCourse.get("curricularYearOID").equals("null"))) {                infoCurricularYear = new InfoCurricularYear();                infoCurricularYear.setIdInternal(new Integer(request.getParameter("curricularYearOID")));            }        }        // Optional Selection        String executionCourseName = (String) searchExecutionCourse.get("executionCourseName");        if ((executionCourseName != null) && (executionCourseName.length() == 0)) {            executionCourseName = request.getParameter("executionCourseName");        }        request.setAttribute("executionCourseName", executionCourseName);        InfoExecutionPeriod infoExecutionPeriod = new InfoExecutionPeriod();        infoExecutionPeriod.setIdInternal(executionPeriodOID);        if ((executionCourseName != null) && (executionCourseName.length() == 0)) {            executionCourseName = null;        }        Object args[] = { infoExecutionPeriod, infoExecutionDegree, infoCurricularYear,                executionCourseName };        List infoExecutionCourses = (List) ServiceManagerServiceFactory.executeService(userView,                "SearchExecutionCourses", args);        if (infoExecutionCourses != null) {            sortList(request, infoExecutionCourses);            request.setAttribute(SessionConstants.LIST_INFOEXECUTIONCOURSE, infoExecutionCourses);        }        return mapping.findForward("ShowCurricularCourseList");    }