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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -