Create a JSP code using JSTL to catches any exceptions that occurs in a above program. code example
Example: jstl tag
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>