Forums Register Login

exception implicit object doubt

+Pie Number of slices to send: Send
<%@ page isErrorPage="false" %>
<html>
<body>
Fatal Error <b><%=exception.getMessage()%></b>
</body>
</html>

What will happen when the Container tries to redirects to a JSP Page after
encountering some error in 'common_error.jsp'?

a. The message 'Fatal Error' along with the description of the exception message will
be displayed.
b. NullPointerException will be encountered in 'common_error.jsp'.
c. The result is unpredictable.
d. None of the above.

As the exception implicit object will not be available for this page..how will the container react ?
+Pie Number of slices to send: Send
you will get exception cannot be resolved compilation error.

hence answare is d
I'm doing laundry! Look how clean this tiny ad is:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 665 times.
Similar Threads
will this throw exception/run perfectly???
page isErrorPage="false"
HFSJ Page 471:
Page 461
How to get exception object on error page with EL?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:28:21.