<%
if (currentLesson != null)
{
%>
<%
}
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 al = webSession.getCurrentLesson();
System.out.println("AL is a " + al.getClass().getName());
if (al instanceof SequentialLessonAdapter)
{
SequentialLessonAdapter sla = (SequentialLessonAdapter) al;
if (webSession.isDebug()&& sla.getStageCount() > 1) {
%>
<%
}
}
else if (al instanceof RandomLessonAdapter)
{
RandomLessonAdapter rla = (RandomLessonAdapter) al;
String[] stages = rla.getStages();
if (stages != null && stages.length > 0) {
%>
<%
}
}
%>
<%=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());%>