my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes exception types and error page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "exception types and error page" Watch "exception types and error page" New topic
Author

exception types and error page

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
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!


SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception types and error page
 
Similar Threads
Question about error pages and JSTL
page vs. pageContext
Page 461
pageContext why?
exception implicit object even though page directive is not present