String Refer=request.getServerName()+ ":" + request.getServerPort()+ request.getContextPath();
String URL = request.request.getRequestURL();
String URL = request.request.getRequestURI();
I have tried to get the current location URL using these commands and i have failed to retrieve the exact location. In java script if i use Document.href, i could achieve my task but if i wanted to the same in java, i cannot retrieve as same ad document.href. I am calling a *.do action where xml will populate the JSP. If i used request.request.getRequestURL i get the jsp location which not the same as document.href