In a message dated 12/31/2002 7:01:19 AM Eastern Standard Time, [EMAIL PROTECTED] writes:

1)  How do I use the ADP 'errorpage' - I can define it ok, but I've no idea what would typically be put in the ADP page specified.  Ideally (during development) I'd like to be able to see the ADP error trace in the browser rather than have to go hunting in the server log - how might I do this?
Does anyone have any example code they use in an ADP error page?


Well, here's one easy way to do it:

### begin errorpage.adp ####
<%

    global errorInfo
    ns_puts \
"   <b>Oops, we have an error:</b><br>
    <pre>[ns_quotehtml $errorInfo]</pre>"

%>
### end errorpage.adp ####

This will dump the tcl error trace to the page so you don't have to be looking at the server log to catch the error(s).

I've been told that you can't always count on the "errorInfo" global tcl var, but I've personally never had any problems with it -- maybe someone else can speak to that.

~Rich
_______________________________
R� i� c� h���� F� r� e� d� e� r� i� c� k� s
Software Engineer
AOL Web Services & Publishing

e: [EMAIL PROTECTED]

Reply via email to