jQuery in Action, 2nd edition*
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
Author

Problem with REFERER in IE5.0

Sanjeev
Greenhorn

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">
</form>
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
Sanjeev
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with REFERER in IE5.0
 
Similar Threads
deployment descriptor
jsp forwarding to a target frame
using ajax and struts iterate tags
Request parameter is missing
Problem regarding URLConnection