Custom error page is not loaded

I got the web.xml > pages tab > error pages > add

Then I added the values for error page location and exception type as follows:

Error page location : /Error.jsp

Exception type: java.jang.ArithmeticException

Now I created Test.jsp with a button. The action method of the button is having this statement: float a =1/0;

Now I tested my application by clicking the button at Test.jsp. Now Error.jsp is not loaded but the usual error handling page is loaded !! Why the Error.jsp is not loaded? Am I missing anything?

Thank you.

[575 byte] By [MISS_DUKE] at [2007-11-26 10:03:09]
# 1
Check this thread http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=65063
Rradhika at 2007-7-7 1:36:30 > top of Java-index,Development Tools,Java Tools...
# 2

The thread given by Rradhika concludes that this problm can be solved by using a HTML page or a JSP page without an accompaning bean.

I tested my application with a HTML error page but it is also not working, the usual error page is loaded, not my custom HTML error page.

Any further suggestions are very much appreciated.

Thank you.

MISS_DUKE at 2007-7-7 1:36:30 > top of Java-index,Development Tools,Java Tools...