(编辑:jimmy 日期: 2024/12/30 浏览:2)
1、获取上一个网页的URL:
String url=request.getHeader("Referer");
2、获取本网页的URL:
String url=request.getScheme()+"://"+ request.getServerName()+request.getRequestURI();