You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de> on 2003/04/10 19:02:41 UTC
Re: hello , i need your help
On 10.Apr.2003 -- 05:47 PM, lilia.ighmouracene@etud.univ-pau.fr wrote:
>
> hello,
>
>
> A- i don't have any pb to pass the parameters of the http request to the xsl
> file with using the instruction like this:
> <map:transform src="...">
> <map: parameter name="use-request-parameters " value ="true">
> </map:transform>
>
> B- BUT i've pb to access to the parameter of the request http in the sitemap
> file of cocoon.
>
> for exemple i want passe the parameter "xml_file" in the generate tag like
> this:
>
> <map: generate src="{xml_file}"/>
>
> i've proceed like this but that don't work
> 1- i declare the action in the components of sitemap.xmap
> <map:components>
> ...
> <map:actions default="request">
> ...
> <map:action name="request" src="org.apache.cocoon.RequestParameterAction"/>
According to the 2.1 docs this needs to be org.apache.cocoon.acting.RequestParamAction
> ...
> <map:actions>
>
> 2- use this action in the pipline
>
> <map:match pattern="xxx">
>
> <map:act type="request">
> <map: parameter name="use-request-parameters " value ="true">
Again, according to the 2.1 docs this needs to be
<map: parameter name="parameters " value ="true">
> <map: generate src="{xml_file}"/>
> </map: act>
>
> ...
> </map:match>
Starting with 2.0.4 you can use the following syntax instead of using
RequestParamAction :
<map:generate src="{request-param:xml_file}"/>
See documents on "InputModules" for an explanation.
>
>
> i'ma sure that i pass the paramter in the request like this ....../cocoon/xxx?
> xml_file="file.xml"
>
> SO HELP ME TO RESOLVE THIS PB
Please use the mailing lists.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org