The moose likes Servlets and the fly likes servlet request URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet request URL" Watch "servlet request URL" New topic

servlet request URL

unna kumar

Joined: Oct 13, 2000
Posts: 11
If I want to get the url of the page from where
the servlet is called, which method should I use?
If I use getRequestURL() , it gives the url of the
web page I am browsing currently.
But I need the previous page url.
I want to know from which page the conytrol comes
Please help.
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Did you try this API?

maha anna
[This message has been edited by maha anna (edited March 30, 2001).]
unna kumar

Joined: Oct 13, 2000
Posts: 11
Thank you very much for reply, I am testing codes send by you,
would reply you the results
I agree. Here's the link:
subject: servlet request URL
It's not a secret anymore!