Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 expression language in jsp?

926


How do I use sendredirect?

889


What is the page directive is used to prevent a jsp page from automatically creating a session?

911


What is jsp in html?

917


When the destroy method of the jsp's are called?

835


What do you mean by isscriptingenabled attribute?

876


Define JSP Scriptlet.

917


What is a hidden comment?

1037


What jsp lifecycle methods can I override?

1033


Can we use jstl in html?

826


What is the use of implicit object named "application" in Application?

1621


What are advantages of jsp over asp, php, pure servlets and others?

854


What is action tag in jsp?

844


How do I use a scriptlet to initialize a newly instantiated bean?

900


Why are jsp pages the preferred api for creating a web-based client program?

986