在Servlet中,使用以下代码:
String requestURL = request.getRequestURL().toString();我收到以下网址:http://localhost:8080/TV/admin/adminView.do
如何动态更改此链接?
最后一个链接应该是:http://localhost:8080/TV/file.txt (即http:// + server + client + file.txt)。
发布于 2015-04-15 18:50:10
https://stackoverflow.com/questions/29648069
复制相似问题