Removed adding title with h1 to the page and removing it
This commit is contained in:
parent
f9d14c9b79
commit
9fe1982eee
@ -731,16 +731,8 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
|
|||||||
*/
|
*/
|
||||||
public void handleRequest(WebSession s) {
|
public void handleRequest(WebSession s) {
|
||||||
// call createContent first so messages will go somewhere
|
// call createContent first so messages will go somewhere
|
||||||
|
|
||||||
Form form = new Form(getFormAction(), Form.POST).setName("form").setEncType("");
|
Form form = new Form(getFormAction(), Form.POST).setName("form").setEncType("");
|
||||||
|
form.addElement(createContent(s));
|
||||||
// Added this hack for WebGoat 6 to include screen titles in each lesson for Jason to screen scrape
|
|
||||||
ElementContainer ec = new ElementContainer();
|
|
||||||
|
|
||||||
ec.addElement(new Center(new H1(getTitle())));
|
|
||||||
ec.addElement(createContent(s));
|
|
||||||
form.addElement(ec);
|
|
||||||
|
|
||||||
setContent(form);
|
setContent(form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user