In a Servlet, using the code:
String requestURL = request.getRequestURL().toString();
I receive the URL: http://localhost:8080/TV/admin/adminView.do
How can I change this link dynamically?
The final link should be: http://localhost:8080/TV/file.txt (i.e. http:// + server + client + file.txt
).