Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

showDocument(..): referer header is not set

778083Jun 6 2011 — edited Jul 5 2011
Hello everybody


I've got an applet with a button. After clicking on it, the user is redirected to a JSP page (on same webserver) with following code in actionPerformed():

getAppletContext().showDocument(new URL(getCodeBase() + "anotherPage.jsp"), "_self");


In anotherPage.jsp I need the info from which URL the user is coming from (because same applet is embedded in different html pages).
For this, I use the 'referer' header:

*<% String backLink = request.getHeader("referer"); %>*


This works fine with Firefox, but not with Internet Explorer.

Is this a bug in IE or is there some browser specific code in the JRE which works not correct for all browsers?

Has anyone an idea to get this working in IE?

Thanks in advance
Markus
This post has been answered by User_64CKJ on Jul 5 2011
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 2 2011
Added on Jun 6 2011
6 comments
529 views