summaryrefslogtreecommitdiff
path: root/swat/esptest/exception.esp
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-09-07 03:08:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:21 -0500
commitf8573766bc17af0afacc5d44d3c3d8234b426dbf (patch)
tree55dfe87448d6332ff48ba6e74fd3226fdd7422f6 /swat/esptest/exception.esp
parent8f3ab786f03e1bb5bf73fe9d7264b1b0bbb90a75 (diff)
downloadsamba-f8573766bc17af0afacc5d44d3c3d8234b426dbf.tar.gz
samba-f8573766bc17af0afacc5d44d3c3d8234b426dbf.tar.bz2
samba-f8573766bc17af0afacc5d44d3c3d8234b426dbf.zip
r24985: Start to revert us back to the old-style SWAT, while trying not to
loose some of the fixes in the meantime. Andrew Bartlett (This used to be commit 13acff5ed259e7b5859fd2324ea7740b8f9e5fd7)
Diffstat (limited to 'swat/esptest/exception.esp')
-rw-r--r--swat/esptest/exception.esp32
1 files changed, 32 insertions, 0 deletions
diff --git a/swat/esptest/exception.esp b/swat/esptest/exception.esp
new file mode 100644
index 0000000000..ff28d6318e
--- /dev/null
+++ b/swat/esptest/exception.esp
@@ -0,0 +1,32 @@
+<% page_header("columns", "ESP Exception test", "esptest");
+ include("/scripting/forms.js");
+%>
+
+<h1>Samba4 exception test</h1>
+
+
+<%
+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";
+ }
+
+ if (form['submit'] == "Generate Exception") {
+ write("I expect you to die Mr Bond!<br>\n");
+ TestFunction("foo");
+ } else {
+ write("no exception<br>\n");
+ TestFunction("foo", "bar");
+ }
+}
+%>
+
+and here is some filler text ...
+
+<% page_footer(); %>