Hi all,

I've been scratching my head over this for a few days, and I just can't see what I'm doing wrong. I am running 4.1.31 under JDK 1.4.2.

Basically, I've taken the default install of 4.1.31 on Windows. The only difference from default is that I've installed in D:/Tomcat 4.1.31

In the conf/web.xml file, I have added this after the welcome-file- list block:

<error-page>
  <error-code>404</error-code>
  <location>/file_not_found.html</location>
</error-page>

I have also put file_not_found.html into webbaps/ROOT. It just looks like this:

<html>
<body>
There was a problem with your request, please try again
</body>
</html>

Those are the only changes I have made to the default 4.1.31 installation.


The problem appears to be that the file_not_found.html page is returned, but with an HTTP 404 status code. I'd like an HTTP 200 status code (OK) to be returned.

The issue is that when I pull up firefox and try to go to a page that doesn't exist, such as http://127.0.0.1:8080/nonono, I do get my page. But when I pull up IE, the browser is showing its default 404 "The page cannot be found" page. I'd just like to see my error text.

Any ideas on how to do this?

Thanks,

--Rob


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to