Integer executionYearID = (Integer) ((DynaActionForm) form).get("executionYearID"); Integer teacherID = (Integer) ((DynaActionForm) form).get("teacherID"); IUserView userView = SessionUtils.getUserView(request);
preparePageData(request, getUserView(request), form, getExecutionYearID(form, request), getTeacherID(form, request));
    public ActionForward changeTeacher(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        Integer executionYearID = (Integer) ((DynaActionForm) form).get("executionYearID");        Integer teacherID = (Integer) ((DynaActionForm) form).get("teacherID");        IUserView userView = SessionUtils.getUserView(request);        if (teacherID == -1) {            teacherID = null;        }        preparePageData(request, userView, form, executionYearID, teacherID);        return mapping.findForward("showTeacherExpectations");    }