aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes How to get exception object on error page with EL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "How to get exception object on error page with EL?" Watch "How to get exception object on error page with EL?" New topic
Author

How to get exception object on error page with EL?

Kelly Wood
Ranch Hand

Joined: Nov 07, 2004
Posts: 54
What is the proper way to get the exception object using EL on an error page? I have tried ${pageContext.exception} but it returns null (<%= exception %> works on the same page).
Ashley Bideau
Ranch Hand

Joined: Apr 22, 2006
Posts: 40
exception implicit object is available ONLY to error pages with an explicitly defined page directive attribute isErrorPage=true

Just configuring error page in DD is not enough to make the Container give that page implicit exception object. The below should work



-Ashley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get exception object on error page with EL?