File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem with REFERER in IE5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with REFERER in IE5.0" Watch "Problem with REFERER in IE5.0" New topic

Problem with REFERER in IE5.0


Joined: Aug 01, 2001
Posts: 2
Hi all,
I have a problem with REFERER when i'm using the form tag like this
<form name="MyForm" method="POST" action="Some.jsp" target="_blank">
<input type="submit">
Now in the Some.jsp i want the referer which i'm getting for the first time,
but not after that.
It goes like this--
The above form tag i'm having in many pages say one.html, two.html, ...
Now when i open one.html and click the submit button and read referer in Some.jsp,
i'm getting the correct value. But after that if i change the url to two.html and
do the same i'm getting the referer as "Some.jsp".
Another unusual thing happening is if i change the url from one.html to two.html
then the request is going as POST instead of GET
This problem doesn't occurs if i remove the target attribute from the FORM tag.
Is this a problem with target attribute. The same is working fine with Netscape 4.0 and 4.5,
IE 5.5. This problem is with IE 5.0
With Netscape 6.0 it is a different problem, the form is going to the server twice,
first as POST and second as GET.

Any idea.
Thanks in advance
I agree. Here's the link:
subject: Problem with REFERER in IE5.0
It's not a secret anymore!