Integer degreeCurricularPlanID = (Integer)tutorForm.get("degreeCurricularPlanID"); request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);
    public ActionForward insertTutorShipWithManyStudent(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws Exception {        ActionErrors errors = new ActionErrors();        HttpSession session = request.getSession();        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        DynaActionForm tutorForm = (DynaActionForm) actionForm;        Integer tutorNumber = Integer.valueOf((String) tutorForm.get("tutorNumber"));        request.setAttribute("tutorNumber", tutorNumber);        Integer executionDegreeId = Integer.valueOf((String) tutorForm.get("executionDegreeId"));        request.setAttribute("executionDegreeId", executionDegreeId);        Integer studentNumberFirst = null;        Integer studentNumberSecond = null;        try {            studentNumberFirst = Integer.valueOf((String) tutorForm.get("studentNumberFirst"));            studentNumberSecond = Integer.valueOf((String) tutorForm.get("studentNumberSecond"));        } catch (NumberFormatException e) {            errors.add("errors", new ActionError("error.tutor.numberAndRequired"));            saveErrors(request, errors);            return mapping.getInputForward();        }        if (studentNumberFirst.intValue() > studentNumberSecond.intValue()) {            errors.add("errors", new ActionError("error.tutor.numbersRange"));            saveErrors(request, errors);            return mapping.getInputForward();        }        Object[] args = { executionDegreeId, tutorNumber, studentNumberFirst, studentNumberSecond };        List studentsWithErros = null;        try {            studentsWithErros = (List) ServiceManagerServiceFactory.executeService(userView,                    "InsertTutorShipWithManyStudent", args);        } catch (NonExistingServiceException e1) {            e1.printStackTrace();            if (e1.getMessage() != null && e1.getMessage().endsWith("Teacher")) {                errors.add("errors", new ActionError(e1.getMessage(), tutorNumber));            } else {                errors.add("errors", new ActionError("error.tutor.impossibleOperation"));            }        } catch (FenixServiceException e) {            e.printStackTrace();            if (e.getMessage() != null) {                errors.add("errors", new ActionError(e.getMessage()));            } else {                errors.add("errors", new ActionError("error.tutor.impossibleOperation"));            }            if (!errors.isEmpty()) {                saveErrors(request, errors);                return mapping.getInputForward();            }            if (studentsWithErros != null && studentsWithErros.size() > 0) {                request.setAttribute("studentsWithErros", studentsWithErros);            }        }        return mapping.findForward("confirmation");    }