Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 06e2bcfd2bce32191881936de6d2aca19834dc1c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                 
<%@ page contentType="text/plain; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
Title: JSTL c:catch test

<c:catch var ="catchException">
  <fmt:parseNumber var="parsedNum" value="aaa" />
</c:catch>

<c:if test = "${catchException != null}">
[c:catch] exception : ${catchException}
[c:catch] exception.message : ${catchException.message}
</c:if>
<c:if test = "${catchException == null}">
[c:catch] exception is null
</c:if>

Back to the top