Building a simple error handling page : Errors « JSP « Java
- Java
- JSP
- Errors
Building a simple error handling page
<HTML>
<HEAD>
<TITLE>Building a simple error handling page.</TITLE>
</HEAD>
<BODY>
<%
try{
int value = 1;
value = value / 0;
}
catch (Exception e){
System.out.println(e.getMessage());
}
%>
</BODY>
</HTML>
Related examples in the same category