[débutant] gestion des exceptions dans web.xml
Bonjour,
J'essaie de gérer une exception en configurant web.xml :
Citation:
<web-app>
<welcome-file-list>
<welcome-file>accueil.jsp</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.lang.NumberFormatException</exception-type>
<location>/WEB-INF/BadNumber.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/NoSuchPage.html</location>
</error-page>
</web-app>
L'erreur 404 est bien rattrappée.
Mais pas l'exception qui est pourtant bien lancée (traces du serveur).
J'ai essayé avec les serveurs sun 1.4 et tomcat 5.5.
Je comprends pas...