<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <% Double db= (Double) (Math.random() * 20); pageContext.setAttribute("random", db, PageContext.PAGE_SCOPE); %> The c:catch action It will show the random number generated over which the decide whether the exception has been occured or not.
The number is :

Exception occurs at. ${random} No Exception at . ${random}