File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

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