* ns_adp_return <http://panoptic.com/wiki/aolserver/Ns_adp_return>
will return from the current adp file completely.
* return
<http://tcl.activestate.com/man/tcl8.4/TclCmd/return.htm>will
return from the current block of code in the file
* I'm not sure what the best method for "return what I've output so
far and do no more processing" is
Lemuel Formacil wrote:
Hello, everyone.
Is there a way to completely abort the execution of an ADP page if an
error occurred? For example, if I have a page that runs something
like this:
<%
error "an error occurred here"
ns_adp_puts "this won't show up"
%>
<p>some html</p>
<%
ns_adp_puts "this will show up"
%>
and then I navigate to this page, the "<p>some html</p>" and the text
"this will show up" will still be returned as an output. It seems
that only the block where the error occurred gets aborted. Is this
the correct behavior? Am I doing my ADP files (or configuration)
completely wrong?
I'm using AOLserver/4.0.10 distribution from macports.
Best,
Lemuel
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
<[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in
the email message. You can leave the Subject: field of your email blank.
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.