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

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -