We do this.  Register a proc for /dir, put your TCL scripts there, in the
/dir handler look at the URL suffix and do a TCL "source" command or
ns_returnfile.  (Put a catch around the source command - that's the
important part).

Jim

>
> 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
> >
> >
>

Reply via email to