I have built a test machine running Apache SSL and the Apache JServ
module.  I want to pass the available SSL_CLIENT_ CGI environment
variables to a servlet as parameters which will be used in turn to query
a directory server containing access control information.  I thought it
would be ideal to use JServSSI and pass the output from tags such as
<!--#echo var="SSL_CLIENT_DN" --> off to a servlet run via the
<SERVLET> tag.  I figured I could enable both Server Side Includes via
[AddType text/html .jhtml, AddHandler server-parsed .jhtml] and
JHTML pages via [JServ ApJServAction .jhtml
/servlets/org.apache.jservssi.JServSSI] in the httpsd.conf file.
However, I can't seem to simultaneously invoke server-parsed code and
embedded <SERVLET> tags.  I tried the XBitHack directive without any
luck either.

getenv() is completely deprecated, and getProperties() is quite
limited.  I could always run a simple PERL script to get what I want and
write it to some scratch space read in by the servlet, but this is
rather crude.  Someone suggested I look at the JavaCGI package
(http://www.orbits.com/software/Java_CGI.html).

But before I go any farther, am I by chance overlooking an easier way to
pass off CGI environment variables to my servlets?

Comments or suggestions welcome.
Stephen Thomas





------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to