Integer degreeCurricularPlanID = (Integer)tutorForm.get("degreeCurricularPlanID"); request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);
    public ActionForward insertTutorShipWithOneStudent(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 studentNumber = null;        try {            studentNumber = Integer.valueOf((String) tutorForm.get("studentNumber"));        } catch (NumberFormatException e) {            errors.add("errors", new ActionError("error.tutor.numberAndRequired"));            saveErrors(request, errors);            return mapping.getInputForward();        }        Object[] args = { executionDegreeId, tutorNumber, studentNumber };        try {            ServiceManagerServiceFactory.executeService(userView, "InsertTutorShipWithOneStudent", args);        } catch (NonExistingServiceException e1) {            e1.printStackTrace();            if (e1.getMessage() != null && e1.getMessage().endsWith("Teacher")) {                errors.add("errors", new ActionError(e1.getMessage(), tutorNumber));            }            if (e1.getMessage() != null && e1.getMessage().endsWith("Student")) {                errors.add("errors", new ActionError(e1.getMessage(), studentNumber));            } else {                errors.add("errors", new ActionError("error.tutor.impossibleOperation"));            }        } catch (FenixServiceException e2) {            e2.printStackTrace();            if (e2.getMessage() != null && e2.getMessage().endsWith("NoDegree")) {                errors.add("errors", new ActionError(e2.getMessage(), studentNumber));            } else if (e2.getMessage() != null && e2.getMessage().endsWith("Tutor")) {                errors.add("errors", new ActionError(e2.getMessage(), studentNumber));            } else {                errors.add("errors", new ActionError(                        "error.tutor.impossibleOperation.studentAlreadyWithTutor"));            }        }        if (!errors.isEmpty()) {            saveErrors(request, errors);            return mapping.getInputForward();        }        return mapping.findForward("confirmation");    }