<html> At 04:35 �� 4/10/2000 +0000, you wrote:<br> <blockquote type=cite class=cite cite>Contact: Tel: 2726 - New Media Systems, 1st Floor South, Queens Walk<br> <br> <br> Hi,<br> <br> I wonder if anyone knows a way to write a servlet for a web site that will be<br> invoked if any request to the web could not be served. For instance, if a URL<br> "<a href="http://myhost/anything.gif" eudora="autourl">http://myhost/anything.gif</a>" is sent to the server, and there is no such file in<br> this server. Instead of user getting a 404 error code, I would like to invoke my<br> servlet instead. I am sure the error handling is done by the server, and<br> therefore I ned some way to hook into the server's error handling.<br> </blockquote><br> Just add the following in your apache httpd.conf <br> <br> ErrorDocument 404 /servlet/myError404Servlet<br> <br> <br> <br> <blockquote type=cite class=cite cite>Don't ask me what happens to the genuine 404 error. My servlet will handle that.<br> <br> <br> I just want my servlet to intercept this error and do something before the error<br> is sent back to the user.<br> <br> <br> <br> Many thanks and regards,<br> <br> </blockquote><br> Best Regards<br> Filippos Slavik<br> <br> <br> <blockquote type=cite class=cite cite>Charles</blockquote> <x-sigsep><p></x-sigsep> <br> ################################################################<br> Filippos Slavik<br> FORTHnet R&D, Hrakleio, Greece <br> e-mail : <font color="#0000FF"><u>[EMAIL PROTECTED]<br> </u></font>phone : (+3) 081 391230 <br> ################################################################<br> <br> Status: RO
___________________________________________________________________________ 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
