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

What is server side programming language?

498


Explain some jsp life-cycle methods that can be overridden.

495


What is cookie with example?

511


Why use of scripting elements in jsp is discouraged?

542


What are the different types scripting elements in jsp?

483






How did you implement caching in jsp?

600


difference betwwn 16 bit and 32 bit

1706


What are the types of directives in jsp?

496


What is the use of 'out' implicit object?

492


How jsp is executed?

458


What is client side technology?

477


What are stored procedures? How is it useful?

505


What is jsp container?

486


Which jsp methods can be overridden?

516


Can we override jspinit method?

477