I have a problem where if someone enters an invalid url into the browser, then the server returns 'Invalid Path error'. For example, if a .do call is bookmarked, that is not actually a valid page to request.
Is there a way of specifying a catch-all page which is automatically forwarded to when nothing is found? The exception/error page doesn't come into affect here as there isn't actually any exception thrown.
Thanks for any advice!
Joined: Sep 14, 2001
Hi, I think you can define that at web deployment descriptor (web.xml). That is at error-page element So when the container receive an HTTP error then it will redirect to an error page which you define at web.xml.