dynaForm.set("ectsCredits", oldInfoCurricularCourse.getEctsCredits().toString());
dynaForm.set("ectsCredits", (oldInfoCurricularCourse.getEctsCredits() == null) ? "" : oldInfoCurricularCourse.getEctsCredits().toString());
    public ActionForward prepareEdit(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws FenixActionException, FenixFilterException {        IUserView userView = SessionUtils.getUserView(request);        DynaActionForm dynaForm = (DynaActionForm) form;        Integer curricularCourseId = new Integer(request.getParameter("curricularCourseId"));        InfoCurricularCourse oldInfoCurricularCourse = null;        Object args[] = { curricularCourseId };        try {            oldInfoCurricularCourse = (InfoCurricularCourse) ServiceUtils.executeService(userView,                    "ReadCurricularCourse", args);        } catch (NonExistingServiceException ex) {            throw new NonExistingActionException("message.nonExistingCurricularCourse", mapping                    .findForward("readDegreeCP"));        } catch (FenixServiceException fenixServiceException) {            throw new FenixActionException(fenixServiceException.getMessage());        }        dynaForm.set("name", oldInfoCurricularCourse.getName());        dynaForm.set("nameEn", oldInfoCurricularCourse.getNameEn());        dynaForm.set("code", oldInfoCurricularCourse.getCode());        dynaForm.set("acronym", oldInfoCurricularCourse.getAcronym());        dynaForm.set("type", oldInfoCurricularCourse.getType().toString());        dynaForm.set("mandatory", oldInfoCurricularCourse.getMandatory().toString());        dynaForm.set("basic", oldInfoCurricularCourse.getBasic().toString());        dynaForm.set("credits", oldInfoCurricularCourse.getCredits().toString());        dynaForm.set("ectsCredits", oldInfoCurricularCourse.getEctsCredits().toString());        dynaForm.set("theoreticalHours", oldInfoCurricularCourse.getTheoreticalHours().toString());        dynaForm.set("praticalHours", oldInfoCurricularCourse.getPraticalHours().toString());        dynaForm.set("theoPratHours", oldInfoCurricularCourse.getTheoPratHours().toString());        dynaForm.set("labHours", oldInfoCurricularCourse.getLabHours().toString());        dynaForm.set("maxIncrementNac", oldInfoCurricularCourse                .getMaximumValueForAcumulatedEnrollments().toString());        dynaForm.set("minIncrementNac", oldInfoCurricularCourse                .getMinimumValueForAcumulatedEnrollments().toString());        dynaForm.set("weight", oldInfoCurricularCourse.getWeigth().toString());        dynaForm.set("mandatoryEnrollment", oldInfoCurricularCourse.getMandatoryEnrollment().toString());        dynaForm.set("enrollmentAllowed", oldInfoCurricularCourse.getEnrollmentAllowed().toString());        dynaForm.set("enrollmentWeigth", oldInfoCurricularCourse.getEnrollmentWeigth().toString());        return mapping.findForward("editCurricularCourse");    }