Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Implicit Exception Object

Mark Gowdy
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!