From 9bb1cb8d9cd5cf2cd8d05a77ce88f00feb410c38 Mon Sep 17 00:00:00 2001 From: Rick Lawson Date: Mon, 15 Sep 2014 08:17:40 -0400 Subject: [PATCH] WEB-68 Service to return WebGoat Version and Build Number -- add email, email list, version number and build number as parameters to about page --- .../org/owasp/webgoat/controller/Start.java | 3 ++ src/main/webapp/WEB-INF/pages/about.jsp | 41 ++++++++++--------- src/main/webapp/WEB-INF/web.xml | 9 +++- 3 files changed, 33 insertions(+), 20 deletions(-) diff --git a/src/main/java/org/owasp/webgoat/controller/Start.java b/src/main/java/org/owasp/webgoat/controller/Start.java index 89d734aef..efaa1ce5f 100644 --- a/src/main/java/org/owasp/webgoat/controller/Start.java +++ b/src/main/java/org/owasp/webgoat/controller/Start.java @@ -56,6 +56,9 @@ public class Start { String contactEmail = servletContext.getInitParameter("email"); model.addObject("contactEmail", contactEmail); + String emailList = servletContext.getInitParameter("emaillist"); + model.addObject("emailList", emailList); + Application app = Application.getInstance(); logger.info("Setting application properties: " + app); model.addObject("version", app.getVersion()); diff --git a/src/main/webapp/WEB-INF/pages/about.jsp b/src/main/webapp/WEB-INF/pages/about.jsp index 5a34019d7..cbf3a5fcf 100644 --- a/src/main/webapp/WEB-INF/pages/about.jsp +++ b/src/main/webapp/WEB-INF/pages/about.jsp @@ -10,24 +10,27 @@

WebGoat Authors @@ -86,9 +89,9 @@

Did we miss you? Our sincere apologies, as we know there have - been many contributors over the years. If your name does not - appear in any of the lists above, please send us a note. We'll - get you added with no further sacrifices required.

+ been many contributors over the years. If your name does not + appear in any of the lists above, please send us a note. We'll + get you added with no further sacrifices required.

diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 5748f87ff..9a2869c79 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -27,12 +27,19 @@ --> email - WebGoat@owasp.org + webgoat@owasp.org The EMAIL address of the administrator to whom questions and comments about this application should be addressed. + + emaillist + owasp-webgoat@lists.owasp.org + + The EMAIL address of the webgoat email list + + contextConfigLocation