-<% page_header("columns", "ESP Exception test"); %>
+<% page_header("columns", "ESP Exception test", "esptest");
+ include("/scripting/forms.js");
+%>
<h1>Samba4 exception test</h1>
-<form name="ExceptionTest" method="POST" action="@@request['SCRIPT_NAME']">
- <input name="submit" type="submit" value="Generate Exception">
- <input name="submit" type="submit" value="No Exception">
- <input name="submit" type="submit" value="Cancel"><br>
-</form>
<%
-if (request['REQUEST_METHOD'] == "POST") {
- /* if they cancelled then take them back to the list of tests */
- if (form['submit'] == "Cancel") {
- redirect("/");
- }
+var f = FormObj("ExceptionTest", 0, 2);
+f.submit[0] = "Generate Exception";
+f.submit[1] = "No Exception";
+f.display();
+
+if (request['REQUEST_METHOD'] == "POST") {
function TestFunction(arg1, arg2) {
return "OK";
}