-<% 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">
-</form>
<%
+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";