create /usr/local/witango/configuration/MiscFiles/error.tml

which is pointed to by defaultErrorFile in witango.ini.

Then all errors get trapped unless you set a defaultErrorFile in application scope

Of course you can handle most errors with ErrorHTML in the appfile.

Bill



On Aug 20, 2007, at 5:25 PM, Roland Dumas wrote:

so get the error.html and insert this in it?



<@IF EXPR='<@ERROR PART="number1"> = -3' >
<@INCLUDE file="/errors/404.tml">
<@ELSE>

<@ERRORS>
        <B>Class: </B><@ERROR PART="class"><BR>
<B>Application File: </B><@ERROR PART="appfilepath"><@ERROR PART="appfilename"><BR>
        <B>Action: </B><@ERROR PART="postion"><BR>
        <B>Main Error Number: </B><@ERROR PART="number1"><BR>
        <B>Secondary Error Number: </B><@ERROR PART="number2"><BR>
        <B>Main Error Message: </B><@ERROR PART="message1"><BR>
        <B>Secondary Error Message: </B><@ERROR PART="message2"><BR>
        <HR>
</@ERRORS>


</@IF>

On Aug 20, 2007, at 4:35 PM, William M Conlon wrote:

Yes. that works on my witango5

Just evaluate the main error number to dispatch different pages.

On Aug 20, 2007, at 4:31 PM, William M Conlon wrote:

I think you just edit the DEFAULTERRORFILE.

Bill

On Aug 20, 2007, at 4:23 PM, Roland Dumas wrote:

no, because witango doesn't pick up the apache 404 file.

On Aug 20, 2007, at 4:21 PM, William M Conlon wrote:

You don't mean the apache 404:

        ErrorDocument 404 /notfound.html

Bill


On Aug 20, 2007, at 4:17 PM, Roland Dumas wrote:

How can I customize the witango file not found response? I'd like it to just grab a page in the web site. _________________________________________________________________ _______ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/ maillist.taf

__________________________________________________________________ ______ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/ maillist.taf


___________________________________________________________________ _____
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

____________________________________________________________________ ____
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

_____________________________________________________________________ ___
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to