Hi Jean-Claude
You can use the request input module to access any request attribute. There is
an attribute called queryString that contains all the get parameters.
You could try :
<map:generate src="url?{request:queryString}"/>
Or something similar. Please refer to module reference in cocoon docs and
oa.c.environment.Request class javadocs for further informations.
Hope this helps,
Simone
----- Messaggio originale -----
Da: "Jean-Claude Moissinac" <[EMAIL PROTECTED]>
A: [email protected]
Inviato: 13/03/06 18.28
Oggetto: Re: File generator and parameters
Thank you for your answer.
It could help but...
In my case, I don't know when writing the sitemap, what will be the URL
parameters used by the client
I need something like 'use-request-parameters' that I use for pushing all
the prameters to an XSLT transformer
On 3/13/06, Jasha Joachimsthal <[EMAIL PROTECTED]> wrote:
>
>
>
> -----Original Message-----
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> *Jean-Claude Moissinac
> *Sent:* maandag 13 maart 2006 15:15
> *To:* [email protected]
> *Cc:* [EMAIL PROTECTED]
> *Subject:* File generator and parameters
>
> Hello
>
> I'm working on a site which allows to process some external pages
>
> I call something like:
> http://mysite/processing/process1/an/external/url
> and which is matched by a pipeline like this
> <map:match pattern="process1/**/*">
> <map:generate src="http://{1}/{2}"/>
> <map:transform type="myTransform"/>
> <map:serialize type="xml" />
> </map:match>
>
> which works fine if the URL has no parameters
> but if the called URL has parameters, the generator seems to ignore it.
> If the request is
> http://mysite/processing/process1/an/external/url?param=12
> I would like that the generator uses
> http://an/external/url?param=12
> as his src
> Is there a solution to do it?
>
> Does this Wiki page help you?
> http://wiki.apache.org/cocoon/RequestParameterModule
>
> Maybe you need to combine it with the URLEncodeModule to filter unwanted
> characters.
>
> In cocoon.xconf add:
>
> <component-instance class="
> org.apache.cocoon.components.modules.input.URLEncodeModule" logger="
> code.modules.input" name="url-encode"/>
>
> Your map:generate may look like this.
>
> <map:generate
> src=http://{1}/{2}?{url-encode:{request-param:foo}}&{url-encode:{request-param:bar}}/>
>
>
>
> Jasha Joachimsthal
>
> ---------
>
> Hippo
>
> Oosteinde 11
>
> 1017 WT Amsterdam
>
> The
--
Simone Gianni
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]