jsp - Get URL of page requested that caused a 404 -
how url of page requested caused 404 error?
for example, type go http://example.com/path/does/not/exist/index.jsp have custom 404 page how go retrieving url mentioned above can display message similar "the url http://example.com/path/does/not/exist/index.jsp not exist"?
if forward used go error page, can obtain original request url
request.getattribute("javax.servlet.forward.request_uri")
or el
${requestscope['javax.servlet.forward.request_uri']}
Comments
Post a Comment