Nesting try/catch Statements in jsp
<%
try {
int c[] = {0, 1, 2, 3};
try {
c[5] = 5;
} catch(ArrayIndexOutOfBoundsException e) {
out.println("
Array index out of bounds: " + e);
}
int a=c[3]/c[0];
} catch(ArithmeticException e) {
out.println("
Divide by zero: " + e);
}
%>