request.getRequestURL()与request.getRequestURI() 有啥区别?
request.getRequestURI() 返回值类似:/myContext/requestdemo.jsp 返回值是String request.getRequestURL() 返回值类似:http://localhost:8080/myContext/requestdemo.jsp 返回值是StringBuffer
request.getQueryString()
比如客户端发送
http://localhost/test.do?a=b&c=d&e=f
通过request.getQueryString()得到的是
a=b&c=d&e=f