Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The request.getHeader("referer") return null even ...

843841Feb 8 2006 — edited Feb 8 2006
I have the following code:

if(request.getHeader("referer").indexOf("myPage.htm") != -1)
...

I never had a problem with this line of code in my development Window box. After uploading the build in the product Linux box, I got a null value error from the line. Well, you know where the null value came from.

The weird part of this issus is that I didn't get the error on my Window box even when I type the url in the URL field of a browser. I don't understand why the same url is treated differently. The both Java web containor are TC 5.5.x .

Any idea?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2006
Added on Feb 8 2006
1 comment
434 views