This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How get exception that sent them to jsp page?

 
Robert Paris
Ranch Hand
Posts: 585
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great Link! I've been looking everywhere for that stuff!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic