- <%
- if (webSession.getHint() != null) {
- printHint = "
" + webSession.getHint() + "
";
- out.println(printHint);
- }
-
- if (webSession.getParams() != null) {
- Iterator i = webSession.getParams().iterator();
- while (i.hasNext()) {
- Parameter p = (Parameter) i.next();
- printParameters = "
" + p.getName() + "=" + p.getValue() + "
";
- out.println(printParameters);
- }
- }
-
- if (webSession.getCookies() != null) {
- Iterator i = webSession.getCookies().iterator();
- while (i.hasNext()) {
- Cookie c = (Cookie) i.next();
- printCookies = "
" + c.getName() + "

" + c.getValue() + "
";
- out.println(printCookies);
- }
- }%>
-
-
- <%
- AbstractLesson lesson = webSession.getCurrentLesson();
- if (lesson instanceof RandomLessonAdapter) {
- RandomLessonAdapter rla = (RandomLessonAdapter) lesson;
- %>
-
Stage <%= rla.getLessonTracker(webSession).getStageNumber(rla.getStage(webSession)) + 1%>
- <%
- }
- %>
- <%=webSession.getInstructions()%>
-
<%=webSession.getMessage()%>
-
- <%
- if (currentLesson.getTemplatePage(webSession) != null) {
- //System.out.println("Main.jsp - current lesson: " + currentLesson.getName() );
- //System.out.println(" - template Page: " + currentLesson.getTemplatePage(webSession));
-%>
-
- <%
- } else {
- %>
-
<%=currentLesson.getContent()%>
- <%
- }
- %>
-
- <% out.println(currentLesson.getCredits());%>
-
-