• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implicit Exception Object  RSS feed

 
Mark Gowdy
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have created an error.jsp page to display a generic error message, along with the option to see the stacktrace and exception message. To test this, I throw a RuntimeException in a servlet which causes my error.jsp to display. The error message I created is shown, but if I add <%= exception.getMessage %> to the jsp then I see no content in the page.
I added a section in the page to check if the exception was null and, lo and behold, it was!!
Does anyone have any idea why the exception is no longer in the page scope?
Thanks
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!