How would I get the URL of the page that was requested that caused the 404 error?
For example, I type I go to http://example.com/path/does/not/exist/index.jsp I alre
If forward was used to go to the error page, you can obtain the original request URL by
request.getAttribute("javax.servlet.forward.request_uri")
or by EL
${requestScope['javax.servlet.forward.request_uri']}