JSP – Exception handling with page directive

JSP – Exception handling with page directive 2017-06-13T10:34:55+00:00

The two attributes of page directive errorPage and isErrorPage are used to deal with exception.

InputData.html :


 


Calculator.jsp :


 


Error.jsp :

 


Input the integer value in textfields and click ADD button.

 

The browser display the below message,

Addition = 11

Now, input the float value in any of the textfield and click ADD button so the browser display the message,

Your page generate an Exception.
For input string: “6.3”

 

Prev Next