public class GroupStudentEnrolmentDispatchAction extends FenixDispatchAction {
public ActionForward prepareEnrolment(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixActionException {
User userView = getUserView(request);
String studentGroupCodeString = request.getParameter("studentGroupCode");
String shiftCodeString = request.getParameter("shiftCode");
request.setAttribute("shiftCode", shiftCodeString);
try {
VerifyStudentGroupAtributes.run(null, null, studentGroupCodeString, userView.getUsername(), new Integer(1));
} catch (NotAuthorizedException e) {
ActionErrors actionErrors = new ActionErrors();
ActionError error = null;
error = new ActionError("errors.noStudentInAttendsSet");