<%
Course course = ((Course)session.getAttribute("course"));
WebSession webSession = ((WebSession)session.getAttribute("websession"));
// pcs 8/29/2012 - HACK
//
// Legacy lessons result in a call to WebSession.update(). Among other things, that call
// sets the previous and current screens. The latter determines the title that is displayed
// in the webgoat banner.
//
// The new Spring-MVC jsps, among which is this genericLesson.jsp, are loaded via our dispatcher servlet
// and does not pass through the code path that results in that update() call.
//
// As a result, we must call update() explicitly here. If we refactor away that legacy code as part
// of webgoat 6 development, we will need to get rid of the call below.
//
webSession.update(request, response, "genericLesson");
AbstractLesson currentLesson = webSession.getCurrentLesson();
%>