cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Huttar <lars_hut...@sil.org>
Subject Re: File generator and parameters
Date Mon, 13 Mar 2006 20:26:16 GMT
Jean-Claude Moissinac wrote:
> 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
You could use the request (not request parameter) module, e.g.
 {request:queryString}

See http://wiki.apache.org/cocoon/InputModules
or http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html

Lars

>
>
> On 3/13/06, *Jasha Joachimsthal* <j.joachimsthal@hippo.nl 
> <mailto:j.joachimsthal@hippo.nl>> wrote:
>
>      
>
>         -----Original Message-----
>         *From:* jcmoissinac@gmail.com <mailto:jcmoissinac@gmail.com>
>         [mailto:jcmoissinac@gmail.com
>         <mailto:jcmoissinac@gmail.com>]*On Behalf Of *Jean-Claude
>         Moissinac
>         *Sent:* maandag 13 maart 2006 15:15
>         *To:* users@cocoon.apache.org <mailto:users@cocoon.apache.org>
>         *Cc:* antoine.moreau@enst.fr <mailto:antoine.moreau@enst.fr>
>         *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
>         <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}}&amp;{url-encode:{request-param:bar}}/>
>
>      
>
>     Jasha Joachimsthal
>
>     ---------
>
>     Hippo
>
>     Oosteinde 11
>
>     1017 WT Amsterdam
>
>     The Netherlands
>
>     +31 (0)20 5224466
>
>     jasha@hippo.nl <mailto:jasha@hippo.nl>
>
>     www.hippo.nl <http://www.hippo.nl>
>
>      
>
>
>
>
> -- 
> -- 
> Jean-Claude Moissinac
> Department of Computer Science and Networks
> ENST Paris
> FRANCE
>
> E-mail: moissinac@enst.fr <mailto:moissinac@enst.fr>
> Tel: (+33) 1.45.81.80.88
> Fax: (+33) 1.45.81.71.58
>
> http://shadok.enst.fr/jcm 


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


Mime
View raw message