The method
getRequestURL() would return the URL of the request submitted by the client. As I understand, the method would return the URL used for submitting the request.
I am getting (http://localhost:8080/test/showAbc.jsp)
Did you submit the request to showAbc.jsp?
If you want to know the URL of the page from which the request was sent, you can try reading the
HTTP-REFERER header. By the way, are you trying to implement some security feature using this information? If not, why do you need this info for?
Cheers
Arvind