Paulo Moreira wrote:
>
> I have a servlet in an Apache server in a Linux Machine. I need that
> my servlet reads the enviroment variable that contains the client
> certificate in an https session. Anyone can tell me if is possible to
> make a servlet that reads a Operating System Enviroment Variable.
>
You could be asking something subtle and complex, or
you could just be really confused about the difference
between CGI and servlets.
If the former: Java doesn't do that very well, use
a wrapper script to set the env variables as system
properties. (Some systems allow you to run servlets
as CGI's by calling a new java runtime on each
execution, that's unlikely to be the case here, but
hey, benefit of the doubt)
Much more likely: CGI variables don't get used like
that in servlets. Check out any of the servlet tutorials
(look at "external resources" at the bottom of this page).
You can get at what you want (if everything else is set
up right) using ServletRequest::getAttribute(), but check
the docs on your servlet container for details.
If you've read the tutorials, and checked the archive,
and you still have questions, then you should include
more info, like the version of Apache, and what servlet
container you're using.
-cks
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html