Unable to redirect 404 error code to a particular resource. My configuration in web.xml as follows.
<error-page>
<error-code>404</error-code>
<location>/FourNotFour.jsp</location>
</error-page>
Please help suggest me in this regard. Thanks in advance.
The configuration looks correct. You can check the existance and location of the /FourNotFour.jsp. It should exist immediately inside the context root directory.
Context-Dir
- FourNotFour.jsp
- WEB-INF
- web.xml
- lib
- classes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With