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 expression language in jsp?
How do I use sendredirect?
What is the page directive is used to prevent a jsp page from automatically creating a session?
What is jsp in html?
When the destroy method of the jsp's are called?
What do you mean by isscriptingenabled attribute?
Define JSP Scriptlet.
What is a hidden comment?
What jsp lifecycle methods can I override?
Can we use jstl in html?
What is the use of implicit object named "application" in Application?
What are advantages of jsp over asp, php, pure servlets and others?
What is action tag in jsp?
How do I use a scriptlet to initialize a newly instantiated bean?
Why are jsp pages the preferred api for creating a web-based client program?