| 1 |
<%@ page contentType="text/plain; charset=UTF-8" %> |
| 2 |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> |
| 3 |
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> |
| 4 |
Title: JSTL c:catch test |
| 5 |
|
| 6 |
<c:catch var ="catchException"> |
| 7 |
<fmt:parseNumber var="parsedNum" value="aaa" /> |
| 8 |
</c:catch> |
| 9 |
|
| 10 |
<c:if test = "${catchException != null}"> |
| 11 |
[c:catch] exception : ${catchException} |
| 12 |
[c:catch] exception.message : ${catchException.message} |
| 13 |
</c:if> |
| 14 |
<c:if test = "${catchException == null}"> |
| 15 |
[c:catch] exception is null |
| 16 |
</c:if> |