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 createNewFinalDegreeWorkProposal(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException {        IUserView userView = SessionUtils.getUserView(request);                Integer degreeCurricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID"));        request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);        HttpSession session = request.getSession(false);        InfoExecutionDegree infoExecutionDegree = (InfoExecutionDegree) session                .getAttribute(SessionConstants.MASTER_DEGREE);        DynaActionForm finalWorkForm = (DynaActionForm) form;        finalWorkForm.set("degree", infoExecutionDegree.getIdInternal().toString());        List branches = CommonServiceRequests.getBranchesByDegreeCurricularPlan(userView,                infoExecutionDegree.getInfoDegreeCurricularPlan().getIdInternal());        request.setAttribute("branches", branches);        request.setAttribute("finalDegreeWorkProposalStatusList", FinalDegreeWorkProposalStatus                .getLabelValueList());        return mapping.findForward("show-final-degree-work-proposal");    }