showDocument(..): referer header is not set
778083Jun 6 2011 — edited Jul 5 2011Hello 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