This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Is it a Bug of Tomcat Related to error-page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Is it a Bug of Tomcat Related to error-page" Watch "Is it a Bug of Tomcat Related to error-page" New topic
Author

Is it a Bug of Tomcat Related to error-page

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it a Bug of Tomcat Related to error-page
 
Similar Threads
Error Page
pageContext.getException() always null
pageContext.exception is not executing
Same exception different handle in tomcat4.1 and weblogic6.1
JSP-Error Page HF Servlets &JSP Page 594