protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		// CHANGE: The EJB is instantiated automatically
		// CourseModel model = CourseModelImpl.getInstance();
		String path = request.getServletPath();
		if (path.equals("/ProgramController")) 
		{
			try {
				String studentId = request.getParameter("studentId");
				StudentMark[] marks = model.getAllStudentMarks(studentId);
				Student student = model.getStudent(studentId);
				request.setAttribute("marks", marks);
				request.setAttribute("student", student);
			} catch (CourseException ex) {
				request.setAttribute("message", ex.getMessage());
			}
			;
			RequestDispatcher dispatcher = request
					.getRequestDispatcher("ProgramDetails.jsp");
			dispatcher.forward(request, response);
		} else if (path.equals("/AllModules")) {
			try {
				Module[] modules = model.getAllModules();
				request.setAttribute("modules", modules);
			} catch (CourseException ex) {
				request.setAttribute("message", ex.getMessage());
			}
			RequestDispatcher dispatcher = request
					.getRequestDispatcher("AllModules.jsp");
			dispatcher.forward(request, response);
		}
	}