web.xml - Handling HTTP error codes in servlet web application -


i know how handle http error codes in servlet web application. how catch specific error codes in web.xml?

configure error-page in web.xml 1 each error-code or exception.

sample code

<error-page>     <error-code>403</error-code>     <location>/errorpage.html</location> </error-page>  <error-page>     <exception-type>javax.servlet.servletexception</exception-type>     <location>/errorservlet</location> </error-page> 

here tutorial might you.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -