Using jstl tag <c:catch> we can capture the exceptions occuring in jsp pages
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
<title>Error Handling Example</title>
</head>
<body>
<c:catch var ="catchException">
The exception will be thrown inside the catch:<br>
<% int x = 5/0;%>
</c:catch>
<c:if test = "${catchException!=null}">
The exception is : ${catchException}<br><br>
There is an exception: ${catchException.message}<br>
</c:if>
</body>
</html>
Subscribe to:
Post Comments (Atom)
SpringBoot Application Event Listeners
When a spring boot application starts few events occurs in below order ApplicationStartingEvent ApplicationEnvironmentPreparedEvent Applicat...
-
1. Create a tld file inside WEB-INF folder having declaration of the custom function as below <?xml version="1.0" encoding=...
-
Issue : When trying to execute "maven clean install", I am getting an error message saying "PKIX path building failed. unable...
No comments:
Post a Comment