}
public ActionForward gradeSubmissionStepOne(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
MarkSheetTeacherGradeSubmissionBean submissionBean =
(MarkSheetTeacherGradeSubmissionBean) RenderUtils.getViewState().getMetaObject().getObject();
request.setAttribute("submissionBean", submissionBean);
ActionMessages actionMessages = new ActionMessages();
boolean canSubmitMarksAnyCurricularCourse =
checkIfCanSubmitMarksToAnyCurricularCourse(submissionBean.getAllCurricularCourses(), submissionBean
.getExecutionCourse().getExecutionPeriod(), request, actionMessages);
calculateMarksToSubmit(request, submissionBean);
request.setAttribute("executionCourse", submissionBean.getExecutionCourse());
if (submissionBean.getMarksToSubmit().isEmpty()) {
addMessage(
request,
actionMessages,
(!canSubmitMarksAnyCurricularCourse) ? "error.teacher.gradeSubmission.noStudentsToSubmitMarksInPeriods" : "error.teacher.gradeSubmission.noStudentsToSubmitMarks");
return doForward(request, "/teacher/evaluation/gradeSubmission/gradeSubmissionStepOne.jsp");