Hi Lee, Do you have <error-page> tags in your web.xml? You can tell Tomcat to send 404 errors to a JSP of your choosing by adding something like this to web.xml, after <welcome-file-list> and before <taglib>:
<error-page> <error-code>404</error-code> <location>/not-found.jsp</location> </error-page> Put your custom message in not-found.jsp. HTH - MOD --- Lee W <[EMAIL PROTECTED]> wrote: > Hi, > > I have just started learning JSP & Tomcat so please > be gentle. > > I am currently designing a webapp and was trying to > get some custom > error pages working (currently just to handle 404, > page cannot be > found). However they don't seem to work in Internet > Explorer. > > All of the default Tomcat errors work fine and so do > my custom ones when > viewed in Mozilla, however IE just displays the > default Microsoft errors. > > I though that maybe IE was using the HTTP return > code in order to > determine which page was displayed so I try changing > that code using (in > the custom error jsp page): > > response.setStatus() - with codes SC_OK, > SC_MOVE_TEMPORARILY > > All this ended up doing is was breaking Mozilla & > causing the default > Tomcat errors to come back. > > Searching though the achives someone posted a > similar problem last year > but either the archive does not have the replies or > no-one replied to > the poster. > > Any help here would be appreciated. > > Regards > > Lee > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
