<web-app>
<error-page>
<error-code>404</erro-code>
<location>/examples/jsp/ErrorPage.html</location>
</error-page>
<
servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>/MyServlet</servlet>
</servlet>
</web-app>
This is what the settings i saw in this site to redirect the page to ErrorPage.html if a file is not found.
I have made the above settings to the web.xml file in the WEB-INF directory. But it has no effect on the site. What could be the problem?
Could anyone help me in this?
My directory structure is like this /home/oraias/product/9.1.0/jsp/webCNPPages
My application's
jsp's are placed in webCNPPages directory.
I have placed the web.xml file inside, webCNPPages/WEB-INF/
Would this be correct. If not where should it be placed?
Can anyone help me?