java - How to get previous page URL from request using a servlet -
how previous page url request using servlet. example, i'm index.html , submitted form index, how index.html url , use in servlet?
request.getrequesturl()
getrequesturl doesn't work since returns url of servlet.
write in servlet following code
string url = request.getheader("referer");
this worked in case.hope works well
Comments
Post a Comment