• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it a Bug of Tomcat Related to error-page  RSS feed

Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using tomcat 5.0.29. I have this in web.xml:

Notice that it is . And, my test error-page is something like this:

However, what puzzle me is the first test with EL is true (pagecontext doesnt have exception object) while the second line directly using exception object DOES execute successfully. That means my exception object is implicitly available but cannot be explicitly obtained from pagecontext!!

If I change the Throwable type in web.xml to java.lang.Exception, the exception object is now available also in the pagecontext.

Did I make any mistake in the code or is this caused by bug in tomcat? Does anyone having similar experience?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!