<%-- This example shows how to catch an exception using --%> <%@ page contentType="text/html" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%-- If there's an exception raised, catch it and store it in varaible e --%> Exception Test 2 <%-- no exception, display ${et.value} --%> The values is: ${et.value} <%-- exception happened. --%> Something bad happened.