estou aprendendo Servlet e não estou conseguindo mostrar um erro na exibição da página por ex: quando acesso uma URI que não existe.
OBS: Já criei 2 arquivos dentro do web-content, 404.html e erro.html
Meu web.xml
<error-page>
<error-code>404</error-code>
<location>/404.html</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/erro.html</location>
</error-page>