Only way I can think to do that is to modify the error files, most web
servers will let you set the file that is displayed when an error occurs
----- Original Message -----
From: "Charles Chen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 04, 2000 10:35 AM
Subject: Don't kwno the topic for this?
> Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk
>
>
> Hi,
>
> I wonder if anyone knows a way to write a servlet for a web site that will
be
> invoked if any request to the web could not be served. For instance, if a
URL
> "http://myhost/anything.gif" is sent to the server, and there is no such
file in
> this server. Instead of user getting a 404 error code, I would like to
invoke my
> servlet instead. I am sure the error handling is done by the server, and
> therefore I ned some way to hook into the server's error handling.
>
> Don't ask me what happens to the genuine 404 error. My servlet will handle
that.
>
>
> I just want my servlet to intercept this error and do something before the
error
> is sent back to the user.
>
>
>
> Many thanks and regards,
>
>
>
> Charles
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html