Previous URL

Hello,

For my app I need to know from which URL this request was made.

let us say i am in http://www.sun.com/index.html

and on that page I click on link which says http://forums.java.sun.com and I will go to forums.

in page http://forums.java.sun.com .

In http://forums.java.sun.com if I want to know form which URL you came from what java methods I need to use.

HTTPUtils.getRequestURL(request); method will not work

it just brings http://forums.java.sun.com as opposed to

http://www.sun.com/index.html

I know how to get this in java script. document.referrer

brings http://www.sun.com/index.html what is equivalent java method.

thanks

[724 byte] By [basusm] at [2007-9-26 1:19:01]
# 1
You might want to try reading the value for the header field Referer from the HTTP request.
neville_sequeira at 2007-6-29 0:50:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...