4)c:catch标签
完成类似java的try catch的功能:
例 2.2.4
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<body>
<c:catch var="myex">
<%
double j = 5 / 0;
%>
</c:catch>
<hr>
异常注意写成5.8/0,就没异常了,(因为是double型的):
<c:out value="${myex}" />
</body>
</html>
更多请看:https://blog.csdn.net/qq_44594371/article/details/103185903