<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="org.owasp.webgoat.session.*, org.owasp.webgoat.lessons.AbstractLesson, org.owasp.webgoat.util.*" errorPage="" isELIgnored="false" %> <tiles:insertAttribute name="title-content" /> <% 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(); %>
<%= currentLesson.getTitle() %>