----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
"Jozef C. Chocholacek" wrote:
> Ave!
>
> Yesterday I've asked how to resolve if https is used (and you've
> helped me to find getServerPort() and getSchema() methods).
>
> Now I have similar problem - I need to know where is client going
> from, what is in "normal" CGI application stored in HTTP_REFERER
> environment variable. I've browse across JSDK and JServ javadoc but
> found nothing.
>
> It is ever possible to get the environment variables?
Ahoj :-)
What you are looking for is the content of "Referer" HTTP
header, which is not provided by all browsers.
You can get it by calling
javax.servlet.http.HttpServletRequest.getHeader("Referer")
To get the environment variables directly is not possible,
because these variables are part of the CGI interface
and Servlet interface is not using CGI.
Makub
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]