Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to redirect 404 error in jsp

Tags:

jsp

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.

like image 578
Jagadeesh Avatar asked Dec 03 '25 18:12

Jagadeesh


1 Answers

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
like image 101
Ramesh PVK Avatar answered Dec 06 '25 20:12

Ramesh PVK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!