cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject Re: get parameters into Sitemap
Date Wed, 11 Jun 2003 08:52:28 GMT
1/ to send request parameter to a transformer :

for example :
<map:transform type="xslt" src="xsl/modify_status.xsl">
<map:parameter name="use-request-parameters" value="true" /> --> This line 
is mandatory for the xslt transformer
<map:parameter name="status" value="{request-param:status}" />
</map:transform>

>And the second thing is how to set parameters to a transformer?
>I tried :
>
><map:transform type="ldap>
>         <map:parameter name="ldap:password"
>value="{request-param:passwd}"/>
></map:transform>

2/ ldap:password should be the name you called in the transformer.
like this (in the setup method):
try {
this.password = parameters.getParameter("ldap:password");
}
...

Lionel


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message