Javatpoint Logo
Javatpoint Logo

9) exception implicit object

In JSP, exception is an implicit object of type java.lang.Throwable class. This object can be used to print the exception. But it can only be used in error pages.It is better to learn it after page directive. Let's see a simple example:

Example of exception implicit object:


<%@ page isErrorPage="true" %>

Sorry following exception occured:<%= exception %>


To get the full example, click here full example of exception handling in jsp. But, it will be better to learn it after the JSP Directives.

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA