Interface HttpServletRequestString getPathInfo()
Returns any extra path information associated with the URL the client sent when it made this request. StringBuffer getRequestURL()
Reconstructs the URL the client used to make the request.
Returns any extra path information associated with the URL the client sent when it made this request. StringBuffer getRequestURL()
Reconstructs the URL the client used to make the request.
extra path information呀!
其返回值comes after the servlet path but before the query string in the request URL至于getRequestURL(),
我试过得到的不是http://127.0.0.1:8080/web/test.jsp
而是http://127.0.0.1:8080/web/Controller呀,因为form中action请求的是Controller的servlet,还是得不到我要的结果!
so easy,头文件 hoho~~