return rectifyMarkSheetStepOne(mapping, actionForm, request, response, rectifyBean, enrolmentEvaluation);
}
public ActionForward rectifyMarkSheetStepOneByStudentNumber(ActionMapping mapping, ActionForm actionForm,
HttpServletRequest request, HttpServletResponse response) {
MarkSheetRectifyBean rectifyBean = (MarkSheetRectifyBean) RenderUtils.getViewState().getMetaObject().getObject();
Integer studentNumber = rectifyBean.getStudentNumber();
Student student = Student.readStudentByNumber(studentNumber);
if (student == null) {
ActionMessages actionMessages = new ActionMessages();
addMessage(request, actionMessages, "error.no.student", studentNumber.toString());
return prepareRectifyMarkSheet(mapping, actionForm, request, response);
}
MarkSheet markSheet = rectifyBean.getMarkSheet();
EnrolmentEvaluation enrolmentEvaluation = markSheet.getEnrolmentEvaluationByStudent(student);
if (enrolmentEvaluation == null) {
ActionMessages actionMessages = new ActionMessages();
addMessage(request, actionMessages, "error.no.student.in.markSheet", studentNumber.toString());