Re: [AOLSERVER] Error Handling / post-processing

2001-08-22 Thread Mark Hubbard

Thanks a bunch!  It's simple straight-ahead info like that that's needed to
get AOLserver into the Win community more.  This might also apply to the
error-trapping problem?  I'll have to try that out...
--
Mark Hubbard: [EMAIL PROTECTED]
Microsoft Certified Professional
"Knowledge is Power."

-Original Message-
From: Rob Mayoff <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, August 22, 2001 2:15 PM
Subject: Re: Error Handling / post-processing


>+-- On Aug 22, Mark Hubbard said:
>> Along the same lines, is there a way to capture all the output from an
ADP
>> in a buffer, and then alter it before it's transmitted?  This would allow
>> things that can't be done easily, or at all, in IIS/ASP.
>
>Register your own Tcl proc for /*.adp.  Use ns_adp_parse to process the
>ADP, then alter the result as necessary, then ns_return the altered
>string.



Re: [AOLSERVER] Error Handling / post-processing

2001-08-22 Thread Rob Mayoff

+-- On Aug 22, Mark Hubbard said:
> Along the same lines, is there a way to capture all the output from an ADP
> in a buffer, and then alter it before it's transmitted?  This would allow
> things that can't be done easily, or at all, in IIS/ASP.

Register your own Tcl proc for /*.adp.  Use ns_adp_parse to process the
ADP, then alter the result as necessary, then ns_return the altered
string.



Re: [AOLSERVER] Error Handling / post-processing

2001-08-22 Thread Mark Hubbard

Along the same lines, is there a way to capture all the output from an ADP
in a buffer, and then alter it before it's transmitted?  This would allow
things that can't be done easily, or at all, in IIS/ASP.
--
Mark Hubbard: [EMAIL PROTECTED]
Microsoft Certified Professional
"Knowledge is Power."


-Original Message-
From: Scott Goodwin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, August 22, 2001 2:04 PM
Subject: Re: Error Handling


>Wow, that is a *great* idea. Then you could register an exception handler
>for a url path. If it's possible, it would probably have to be something
>set inside the Tcl interp that is running the ADP or Tcl code, before it
>starts running the code. Unfortunately I don't yet know enough about Tcl
>internals to know how to go about doing this, but it is well worth looking
>into.
>
>/s.
>
>
>> Is there any way in AOLServer to register an exception handler?  What I
>> would like to avoid is going over all the pages in my site and adding
>> a "catch" statement so that if an exception is thrown, either through the
>> tcl interpreter or or a postgresql query or action, I could catch it with
>a
>> proc or page.
>>
>> Thanks,
>> Vince
>>
>>