How does JSP handle run-time exceptions?

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


Please Help Members By Posting Answers For Below Questions

Are dialogue tags necessary?

507


What is asp and jsp?

505


How to send data from one page to another in jsp?

498


What is taglib uri in jsp?

497


What is page scope?

496






What is the use of jstl tags in jsp?

525


what are the tools used in your project , How to ask the answer this question

1601


Show the 2 types of comments in JSP.

555


What is the difference between a jspwriter and a servlet printwriter?

521


How do I use comments within a jsp page?

552


i need the source code for opening a word document in java

1795


Is jsp server side or client side?

493


What are the types of directives in jsp?

512


What are the events in jsp page?

491


What is jsp exception?

510