<%@page isErrorPage="true" contentType="text/html" autoFlush="true" import="java.util.*" %> SIGMA TER ERRORE

Errore

<% // l'intera storia delle eccezioni viene messa in una lista List eccezioni = new ArrayList(); boolean erroreRemoto = false; Throwable eccezioneCorrente = exception; while (eccezioneCorrente!=null) { eccezioni.add(eccezioneCorrente); out.println(""); eccezioneCorrente = eccezioneCorrente.getCause(); } out.println("Si è verificato un errore nell'invocazione della WebApplication"); out.println("
"); Iterator it = eccezioni.iterator(); while (it.hasNext()) { Throwable tt = (Throwable)it.next(); // INSERIRE IL CODICE PER MODIFICARE IL MESSAGGIO DI ERRORE //out.println("
"); //out.println(tt.getMessage()+" ("+tt.getClass().getName()+")"); //out.println("
"); } %>