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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -