This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception types and error page

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, a question...

if the "exception" from jsp page - JSP implicit object - is a instance of "javax.servlet.jsp.JspException".

and

"pageContext.getException()" from PageContext is a instance of "java.lang.Exception".

1 - and what if i raise a "Throwable" exception (java.lang.Throwable) from my JSP code ???

How will the container manage it whether the control is redirected to the some error page (with isErrorPage="true")?

since the "exception" object from JSP implicit obj is "JspException" and the "${pageContext.exception} is "Exception"


2- and another thing..who does it work..becuase this JSP is translated, and teh service method has the following signature: ...."ServletException, IOException"..

what kind of mess did i do?

Tkkss again!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic