Detailed new lesson instructions

git-svn-id: http://webgoat.googlecode.com/svn/trunk@120 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
mayhew64
2007-03-19 19:07:00 +00:00
parent 34fca43216
commit e2e98574b5
4 changed files with 154 additions and 167 deletions

View File

@ -73,7 +73,7 @@ public abstract class LessonAdapter extends AbstractLesson
ec
.addElement(new Center().addElement(new H3()
.addElement(new StringElement(
"This lesson needs a creator."))));
"Detailed Lesson Creation Instructions."))));
ec.addElement(new P());
ec
.addElement(new StringElement(
@ -99,7 +99,9 @@ public abstract class LessonAdapter extends AbstractLesson
ec.addElement(pre);
}
catch (Exception e)
{}
{
e.printStackTrace();
}
}
return (ec);
}

View File

@ -46,9 +46,10 @@ public class NewLesson extends LessonAdapter
*/
protected Element createContent(WebSession s)
{
// just to get the generic how to text.
makeSuccess(s);
return (new StringElement("Welcome to the WebGoat hall of fame !!"));
return super.createContent(s);
//makeSuccess(s);
//ec.addElement(new StringElement("Welcome to the WebGoat hall of fame !!"));
//return (ec);
}
@ -80,4 +81,10 @@ public class NewLesson extends LessonAdapter
{
return ("How to add a new WebGoat lesson");
}
public Element getCredits()
{
return super.getCustomCredits("Created by: Your name goes here!", new StringElement(""));
}
}