1、获取上一个网页的URL:
String url=request.getHeader("Referer");
2、获取本网页的URL:
String url=request.getScheme()+"://"+ request.getServerName()+request.getRequestURI();
关键字词:
1、获取上一个网页的URL:
String url=request.getHeader("Referer");
2、获取本网页的URL:
String url=request.getScheme()+"://"+ request.getServerName()+request.getRequestURI();