HttpServletResponse response) {
String executionCourseID = request.getParameter("executionCourseID");
String shiftID = request.getParameter("shiftID");
Shift shift = FenixFramework.getDomainObject(shiftID);
ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseID);
for (Registration registration : shift.getStudentsSet()) {
shift.removeAttendFromShift(registration, executionCourse);
}
request.setAttribute("shift", shift);
request.setAttribute("executionCourseID", executionCourseID);
request.setAttribute("registrations", shift.getStudentsSet());
request.setAttribute("personBean", new PersonBean());
return forward(request, "/teacher/executionCourse/editShift.jsp");
}