Hi, I'd like to intercept the PageNotFound warning and send the user to a custom 404 page. How does one do that? Trapping org.springframework.web.servlet.PageNotFound doesn't seem to work.
Also, I tried adding the following code to my web.xml
However, tomcat seems to not want to invoke this page when the wrong url is entered for non-spring urls. Help with this too please?Code:<error-page> <error-code>404</error-code> <location>/WEB-INF/freemarker/404.ftl</location> </error-page>