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
What is an implicit object?
How can we disable el?
What is jsp taglib?
Is jsp front end or backend?
What are the two ways to include the result of another page?
Why jsp is used in java?
Which syntax is used to comment jsp?
How can I override the jspinit() and jspdestroy() methods within a jsp page?
What is the difference between include and jsp directive: include action?
What is response sendredirect?
What is request scope in jsp?
Can we use jstl in html?
Which tags are used for bean development?
What is _jspservice method?
How are the jsp requests handled?