cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasha Joachimsthal" <>
Subject RE: File generator and parameters
Date Mon, 13 Mar 2006 14:57:49 GMT

-----Original Message-----
From: []On Behalf Of Jean-Claude Moissinac
Sent: maandag 13 maart 2006 15:15
Subject: File generator and parameters


I'm working on a site which allows to process some external pages

I call something like:
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" />

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 
I would like that the generator uses
as his src
Is there a solution to do it?

Does this Wiki page help you?

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}}&amp;{url-encode:{request-param:bar}}/>


Jasha Joachimsthal



Oosteinde 11

1017 WT Amsterdam

The Netherlands

+31 (0)20 5224466


View raw message