- Revision
- 1399
- Author
- mauro
- Date
- 2009-12-07 11:33:53 -0600 (Mon, 07 Dec 2009)
Log Message
JBEHAVE-213: Added some safeguards on method values.
Modified Paths
Diff
Modified: trunk/web/web-runner/src/main/java/org/jbehave/web/runner/waffle/controllers/ScenarioContext.java (1398 => 1399)
--- trunk/web/web-runner/src/main/java/org/jbehave/web/runner/waffle/controllers/ScenarioContext.java 2009-12-07 17:06:29 UTC (rev 1398) +++ trunk/web/web-runner/src/main/java/org/jbehave/web/runner/waffle/controllers/ScenarioContext.java 2009-12-07 17:33:53 UTC (rev 1399) @@ -15,7 +15,7 @@ private static final String EMPTY = ""; private static final List<String> EMPTY_LIST = asList(); - private String method; + private String method = POST; private String input; private String output; private List<String> messages;
Modified: trunk/web/web-runner/src/main/webapp/ftl/scenario/scenario.ftl (1398 => 1399)
--- trunk/web/web-runner/src/main/webapp/ftl/scenario/scenario.ftl 2009-12-07 17:06:29 UTC (rev 1398) +++ trunk/web/web-runner/src/main/webapp/ftl/scenario/scenario.ftl 2009-12-07 17:33:53 UTC (rev 1399) @@ -7,7 +7,7 @@ </head> <#include "/ftl/navigation.ftl" parse="true"> <div id="content"> - <form action="" method="${scenarioContext.method}"> + <form action="" method="${scenarioContext.method!"POST"}"> <#include "/ftl/errors.ftl" parse="true"> <div id="scenarioInput">
To unsubscribe from this list please visit:
