[opencms-dev] request.getHeader("Referer") doesn't work in JSP

mfoley5 at csc.com.au mfoley5 at csc.com.au
Sun Nov 24 09:25:45 CET 2002


Hi All (Alex!),

We are (still) using the Flex version (until we can get v5 working) and
have a problem in that within a JSP the following fragment does not return
the "Referer" header from the request.

    <INPUT type='hidden' name='fromPage'
           value='<%= request.getHeader("Referer") %>'>

This works fine when the JSP is delivered directly by the Appserver, but
not when it's in a URL like:

http://myhost/bcnet/opencms/common/jsp/mailFriend.jsp

We need an "e-mail page to a friend" type function, but this isn't
happening!

Thanks for your urgent help!

Regards,
Mark



Mark Foley
__________________________________________________
CSC
212 Northbourne Ave, Braddon, ACT 2612
Ph: +61-2-62468487    Email: mfoley5 at csc.com.au
----------------------------------------------------------------------------------------

This email, including any attachments, is intended only for use by the
addressee(s) and may contain confidential and/or personal information and
may also be the subject of legal privilege. Any personal information
contained in this email is not to be used or disclosed for any purpose
other than the purpose for which you have received it. If you are not the
intended recipient, you must not disclose or use the information contained
in it. In this case, please let me know by return email, delete the message
permanently from your system and destroy any copies.
----------------------------------------------------------------------------------------




More information about the opencms-dev mailing list