%@ page language="java" contentType="text/html;charset=utf-8" %> <%@ page import="org.crosswire.flashcards.LessonManager" %> <%@ page import="org.crosswire.flashcards.LessonSet" %> <%@ page import="org.crosswire.flashcards.Lesson" %> <%@ page import="org.crosswire.flashcards.Quizer" %> <% Quizer quizer = (Quizer)session.getAttribute("fcquizer"); if (quizer == null) { LessonManager mgr = (LessonManager)session.getAttribute("fcmgr"); String ls = request.getParameter("ls"); String l[] = request.getParameterValues("l"); if (mgr == null) return; if (ls == null) return; if (l == null) return; if (l.length == 0) return; LessonSet leset = mgr.getLessonSet(ls); if (leset == null) return; quizer = new Quizer(); for (String o : l) { Lesson lesson = leset.getLesson(o); if (lesson != null) { quizer.loadLesson(lesson); } } session.setAttribute("fcquizer", quizer); } %>