addActionMessage(request, null, null); return submit(mapping, form, request, response);
addActionMessage(request, e.getMessage()); return goToSummaryManagementPage(mapping, request, dynaActionForm, bean);
    public ActionForward chooseTeacher(ActionMapping mapping, ActionForm form,	    HttpServletRequest request, HttpServletResponse response) {	DynaActionForm dynaActionForm = (DynaActionForm) form;	final IViewState viewState = RenderUtils.getViewState();	SummariesManagementBean bean = (SummariesManagementBean) viewState.getMetaObject().getObject();	Professorship professorship = getProfessorshipFromParameter(request);	if (professorship != null) {	    bean.setProfessorship(professorship);	    bean.setTeacher(null);	    bean.setTeacherName("");	    dynaActionForm.set("teacherNumber", "");	    dynaActionForm.set("teacherName", "");	} else if (dynaActionForm.getString("teacher").equals("-1")		&& !StringUtils.isEmpty(dynaActionForm.getString("teacherName"))) {	    bean.setTeacherName(dynaActionForm.getString("teacherName"));	    bean.setTeacher(null);	    bean.setProfessorship(null);	    dynaActionForm.set("teacherNumber", "");	} else if (dynaActionForm.getString("teacher").equals("0")		&& !StringUtils.isEmpty(dynaActionForm.getString("teacherNumber"))) {	    Teacher teacher = null;	    try {		teacher = Teacher.readByNumber(Integer.valueOf(dynaActionForm.getString("teacherNumber")));	    } catch (NumberFormatException e) {		addActionMessage(request, null, null);		return submit(mapping, form, request, response);	    }	    bean.setTeacher(teacher);	    bean.setTeacherName(null);	    bean.setProfessorship(null);	    dynaActionForm.set("teacherName", "");	} else {	    setLoggedTeacherToFormBean(request, dynaActionForm, bean);	}	request.setAttribute("summariesManagementBean", bean);	return mapping.findForward("prepareInsertSummary");    }