[AOLSERVER] Error Handling

2001-08-22 Thread Vince Ciganik
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

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Scott Goodwin
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

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Mark Hubbard
Yes it is. If we end up using AOLserver, we will require something like that. If it can't do it, I'll be writing a parser (in TCL) for our pages that will do it. -- Mark Hubbard: [EMAIL PROTECTED] Microsoft Certified Professional Knowledge is Power. -Original Message- From: Scott

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.

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

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Jim Wilcoxson
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

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Jerry Asher
At 12:33 PM 8/22/01, you wrote: 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 I think an important thing to

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Jim Wilcoxson
Yes. We do virtual hosting this way. Register a proc for /, look at the Host: header and URL, then source/read the files from whatever directory you want. The downside is that you are invoking TCL on every request, which has some overhead. But we've been doing it for years, have 1M+ hits/day,

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Mark Hubbard
Yes! Thank you! That elusive bit of info will clear a major roadblock to adopting AOLS. I've been puzzling over why the nsvhr and those other modules are needed, if that can be done instead. I guess the C modules would be good for a REALLY high traffic site. But that wouldn't be us. I also

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Jerry Asher
At 01:21 PM 8/22/01, you wrote: Yes! Thank you! That elusive bit of info will clear a major roadblock to adopting AOLS. I've been puzzling over why the nsvhr and those other modules are needed, if that can be done instead. I guess the C modules would be good for a REALLY high traffic site.

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Mark Hubbard
Thanks for the info. I'm reading your howto right now. Sounds like the C modules will be a good solution for later, after we really have lots of sites on AOLserver. For now I think the all-TCL register a proc on / solution will work, as long as we don't have trouble with AOLserver hanging, as

Re: [AOLSERVER] Error Handling

2001-08-22 Thread Michael Richman
In a message dated 8/22/01 2:55:07 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: 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