This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes tomcat 5 and error page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

tomcat 5 and error page

danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
Hi all:
When I used tomcat 5, I meet a wierd problem.
What I wanna do is to direct all errors to one shared error page. I don't like to add
a directive <%@ page errorPage="xxx" %>, so I add an error page entry in web.xml.
The error.jsp has a directive <%@ page isErrorPage="true" %>
But it doesn't work.
I also tried the error status code:
It doesn't work either.
Can anyone give an idea?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Make sure you are throwing that exception or any exception derived from it. Also verify that IE is not set to show friendly http error msgs. Tools->Internet Options->Advanced. "Show friendly http error messages" should not be checked.

So much trouble in the world -- Bob Marley
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

We have duplicate conversations happening.
Please don't post the same question in multiple forums, it wastes the time of the pople trying to help you.
Anyone who wants to help should see the copy here.
I agree. Here's the link:
subject: tomcat 5 and error page
It's not a secret anymore!