When i used this tag for 404 HTML error code,this is working randomly. When requested for a non existing resource, sometimes it diplays my error page and sometimes it displays the Tomcat's error page with message and sometimes browser's "The page cannot be found" is displayed.
Can any one help me in explaining why this is happening?
MSIE, by default, will display it's own error message when a site sends back a failing response code (404 in this case). You can stop this by going to Tools -> Options -> Advanced (tab) -> and then unchecking the "Show Friendly Http Errors" checkbox.