wood burning stoves 2.0
The moose likes JSP and the fly likes custom 404 error page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "custom 404 error page" Watch "custom 404 error page" New topic

custom 404 error page

Don Arnett

Joined: Feb 05, 2001
Posts: 18
Our system uses apache and tomcat on linux boxes. Does anyone know how to configure tomcat to use a custom 404 error page? I can get a custom page (via apache) when someone enters a bad .html URL, but would like to have a custom page for when someone enters a bad .jsp URL.
Don Arnett

Joined: Feb 05, 2001
Posts: 18
fingered it out. In the WEB-INF/web.xml file for each context, add the following

the file entry (/jsp/errorPage404.jsp) must start with a / and is relative to the context home directory.
I agree. Here's the link: http://aspose.com/file-tools
subject: custom 404 error page
It's not a secret anymore!