Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How get exception that sent them to jsp page?

 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I set a JSP page as an error-page, so certain exceptions will send you to that page. How do I get that exception?
 
Mark Howard
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robert
An implicit variable called exception is made available to a JSP page which has an explicit page directive to indicate that it is an error-page handler:

You can see the actual Java declaration of this exception variable (which is of type Throwable) if you look at the generated _jspService() method.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case you haven't seen it, the JSP Syntax card is most useful. It is available from java.sun.com
One of things I always have it on the wall in front of me. (I mention it now because I always have to go looking for the implicit objects and tag syntax)
Dave
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great Link! I've been looking everywhere for that stuff!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic