Hello again, excuse me for the auto-reply... :-) Just to clarify my troubles: i tried again and noted that, if i rename 400.esp in 404.esp, this correctly handle the 404 response code. However if i throw an Exception during the request (either in Java code or in esp script), 500 code is still displayed with the default Tomcat error page (even if i'm defining the "500.esp", "Throwable.esp" and "default.esp" error handling scripts...).
Now i would ask: 1) What i'm wrong with the uncaught exceptions handling? 2) Can i handle all 40(X) error codes with the 400.esp script? (And if yes, how can i do? It's not working for me at the moment...) Thanks again, greetings, Fabrizio Scarcello. > Hello everyone! > I'm trying to set error handling scripts, but i have some problem (.. i > didn't understand the documentation page?... :-)). > I'm simply creating error handling scripts in the initial content loading > folder in my bundle, as: > initial-content/apps/sling/servlet/errorhandler/400.esp, 500.esp, > Throwable.esp > Then i'm generating an error in a script (in my application), but the 500 > response code is still shown in the default Tomcat error page... > I looked for some configuration option in the Felix Admin Console, but i > have not found... > > Can you explain me what i'm doing wrong? :-) > > Thanks in advance, > greetings, > Fabrizio Scarcello. >
