Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Access Apache server variables from Tomcat code?

Jacob Kjome

2003-12-10

Replies:

request.getRemoteUser();

Jake

Quoting William R Briggs <wrbriggs@(protected)>:

> Hi all,
>
> A somewhat random question that I have been unable to find the answer to -
> I have a setup using Tomcat 5.0.16 w/ Apache 1.3.28. I am using a custom
> Apache module that is internal to my company in order to perform user
> authentication. This module exports certain values into the server
> environment. Using PHP, I can access the values like so:
> $_SERVER['REMOTE_USER'].
>
> Is there an equivalent I can use from my servlet/jsp code within Tomcat to
> access this environment information?
>
> Thanks,
> Will

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.