Hi Josep

I think that in Cocoon you should capture the HTTP header from Apache using
an input module (probably the  HeaderAttributeModule). This is an "Input
Module"; a sitemap component which allows you to refer to some aspect of the
environment by an expression in your sitemap. These expressions are enclosed
in curly brackets (like an "attribute value template" in XSLT) like this:

{foo:bar}

Within the brackets the prefix is a kind of namespace which identifies the
type of input module (i.e. http header, global variable, request parameter,
etc):

http://cocoon.apache.org/2.1/userdocs/concepts/modules.html#Types+of+Modules
http://wiki.cocoondev.org/Wiki.jsp?page=InputModules

e.g. in the sitemap, you can for instance pass the value of the header to an
XSLT with a <map:parameter> element when you call the XSLT transform.

I'm sorry I don't know the exact syntax for the "header" module (I haven't
used it), but I think you should be able to find it. It's not documented on
the Cocoon site or Wiki (as far as I can tell), but I think there are
examples in the Cocoon samples.

Hopefully something like:

<map:transform src="ssl-foo.xsl">
        <map:parameter name="ssl-client-certificate"
value="{header:SSL_CLIENT_CERTIFICATE}"/>
</map:transform>

Good luck!

Con

-----Original Message-----
From: Josep Riudavets [mailto:[EMAIL PROTECTED]
Sent: Monday, 6 October 2003 23:56
To: [EMAIL PROTECTED]
Subject: Re: Accessing to environment variables from Cocoon


Please !!!! Some help for my question !!! ;) Thanks
----- Original Message -----
From: Josep Riudavets
To: [EMAIL PROTECTED]
Sent: Friday, October 03, 2003 5:23 PM
Subject: Accessing to environment variables from Cocoon


Hi ...

I'm trying to capture SSL_CLIENT_CERTIFICATE variable from Cocoon. I'm
working with Apache 1.3, Tomcat 4.1.24 and Cocoon 2.1.

I have developed a system where all queries from clients to Apache are
passed to Tomcat applying the APJ13 protocol. Now, I need to know some
environment variables related to SSL client certificate, such
SSL_CLIENT_CERTIFICATE or  SSL_CLIENT_DN.

I have included next line to httpd.conf:

JkEnvVar SSL_CLIENT_CERTIFICATE SSL_CLIENT_CERTIFICATE

(I guess the syntax for this option is JkEnvVar apache_name tomcat_nam)

But ... what directive I have to use in Cocoon (xsl page) in order to
capture this variable?

Thanks a lot !!!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to