Are you tring this in your local test environment.
deploy the app to production environment and see referer is coming
populated...


-----Original Message-----
From: Maria Tan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 10:29 PM
To: [EMAIL PROTECTED]
Subject: [SERVLET-INTEREST] getHeader("Referer") and document.location


Hi:

In my first servlet,I use the
document.location="SecondServlet" for URL Rewriting,

In my second servlet, i use getHeader("Referer") to
get the referer. It works well in Netscape, but in IE,
it always returns null.

String ref = (String)request.getHeader("Referer");
(ref returns null in IE, return URL in Netscape).

Any suggestion?

Thanks

Maria


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to