JSP Tutorials

JSP Exception
Previous Home Next
adplus-dvertising

In exception is performed an object in runtime and which is handled the runtime error.

There are two ways to handled exception :

  1. By errorpage and issErrorpage attributes page directives
  2. By <error-page> element in web.xml file

Example

    <%@ page isErrorPage="true" %>  
    <html>  
    <body>  
    Sorry following exception occured:<%= exception %>  
    </body>  
    </html> 

    <%@ page isErrorPage="true" %>  
    <html>  
    <body>  
    Sorry following exception occured:<%= exception %>  
    </body>  
    </html>  
Previous Home Next