return forward(request, "/teacher/executionCourse/evaluationMethod.jsp");
}
public ActionForward prepareEditEvaluationMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
final ExecutionCourse executionCourse = (ExecutionCourse) request.getAttribute("executionCourse");
EvaluationMethod evaluationMethod = executionCourse.getEvaluationMethod();
MultiLanguageString evaluationElements = evaluationMethod == null ? null : evaluationMethod.getEvaluationElements();
if (evaluationMethod == null || evaluationElements == null || evaluationElements.isEmpty()
|| StringUtils.isEmpty(evaluationElements.getContent())) {
MultiLanguageString evaluationMethodMls = new MultiLanguageString();
final Set<CompetenceCourse> competenceCourses = executionCourse.getCompetenceCourses();
if (!competenceCourses.isEmpty()) {
final CompetenceCourse competenceCourse = competenceCourses.iterator().next();
final String pt = competenceCourse.getEvaluationMethod();
final String en = competenceCourse.getEvaluationMethodEn();
evaluationMethodMls =
evaluationMethodMls.with(MultiLanguageString.pt, pt == null ? "" : pt).with(MultiLanguageString.en,
en == null ? "" : en);
}
EditEvaluation.runEditEvaluation(executionCourse, evaluationMethodMls);
evaluationMethod = executionCourse.getEvaluationMethod();
}
return forward(request, "/teacher/executionCourse/editEvaluationMethod.jsp");
}