Building a simple error handling page : Errors « JSP « Java






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

1.Simple error testing
2.Jsp Error Bean
3.Using an Error Page Jsp
4.Using the Exception Object in Jsp
5.Deal with the errors
6.Error without handler
7.JSP Error handler
8.Error Handling: compile error in JSP page
9.JSP error: no such page
10.Page with error in JSP directive and actions
11.JSP error detected
12.Advanced Dynamic Web Content Generation: form error checkAdvanced Dynamic Web Content Generation: form error check