Throwing an Exception in jsp
<% try { throw new ArrayIndexOutOfBoundsException ("Array index out of bounds Exception!"); } catch(ArrayIndexOutOfBoundsException e) { out.println("
Exception message:
" + e); } %>