Generate Exception in c:out : Exception « JSTL « Java Tutorial






<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
  <head>
    <title>Throw an Exception</title>
  </head>

  <body>10 divided by 0 is 
  <c:out value="${10/0}" />

  <br />
  </body>
</html>
  Download:  JSTLGenerateException.zip( 1,225 k)







24.13.Exception
24.13.1.Generate Exception in c:out
24.13.2.C:Catch Exception
24.13.3.Catch Exception and Print Out Exception Message
24.13.4.Catch Exception
24.13.5.Catch Error