Answer Posted / guest
You can use the errorPage attribute of the page directive
to have uncaught runtime exceptions automatically forwarded
to an error processing page.
For example:
redirects the browser to the JSP page error.jsp if an
uncaught exception is encountered during request
processing. Within error.jsp, if you indicate that it is an
error-processing page, via the directive:
the Throwable object describing the exception may be
accessed within the error page via the exception implicit
object.
Note: You must always use a relative URL as the value for
the errorPage attribute.
Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
How can I override the jspinit() method within a jsp page?
How did you implement caching in jsp?
What is session tracking in jsp?
How does response sendredirect work?
Why do we need custom tags?
What is the full form of jsp?
What is full form of jsp?
What is content type in jsp?
What jsp lifecycle methods can I override?
Which tag should be used to pass information from jsp to include jsp?
Why is jsp used?
What is the requirement of a tag library?
Can we implement an interface in a jsp?
What is application scope in jsp?
Define jsp declaration?