Hi Jeff, Thanks very much for your input. I was able to build a servlet that redirects any request resulting in a 404 to a specific file.
Tim On May 19, 5:24 pm, "Jeff S (Google)" <[email protected]> wrote: > Hi Tim, > > I haven't tried using an <error-page> in web.xml, but you could add a > servlet mapping which matches all requests which fall through the > above mappings (place it at the end of the <web-app>) and use it to > write out your custom error page. I'm looking into the error-page > element as well. > > Happy coding, > > Jeff > > On May 17, 8:57 am, Tim Wickstrom <[email protected]> wrote: > > > I am using Java to run my google app, and I would like to override the > > default 404 error that is thrown. > > > I am attempting to do this by defining the error page with web.xml > > > <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"> > > ... stuff ... > > <error-page> > > <error-code>404</error-code> > > <location>/test404.html</location> > > </error-page> > > </web-app> > > > The application doesn't seem to be reacting to the change I've made to > > the web.xml file. Has anyone else run into a similar issue? Is there > > another method I should be using to define the 404 response in java? > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
