cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasha Joachimsthal" <j.joachimst...@hippo.nl>
Subject RE: using request parameter in <map: generator
Date Fri, 22 Jun 2007 15:13:45 GMT
Hi Vidivoiu,

In the sitemap you can use <map:parameter name="results"
value={request-param:results}/>

Regards,

Jasha Joachimsthal

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

www.hippo.nl 

> -----Original Message-----
> From: Vaduvoiu Tiberiu [mailto:vaduvoiutibi@yahoo.com] 
> Sent: vrijdag 22 juni 2007 17:08
> To: users@cocoon.apache.org
> Subject: using request parameter in <map: generator
> 
> I want to define and use a request parameter for a dasl 
> search  so what I want to do is have a parameter "results" 
> with which in dasl I can restrict the number of results that 
> are displayed
> 
> in my sitemap, if I define:
> 
>       <map:match pattern="*/documents">
>         <map:generate src="dasl-documents.xml" type="newjx">
>           <map:parameter name="repository" 
> value="{global:repositoryRoot}{global:{1}Path}"/>
>           <map:parameter name="results" value="3"/>
>         </map:generate>
>         <map:transform type="webdav"/>
>         <map:transform src="transformers/dasl-result.xsl"/>
>         <map:serialize type="xml"/>
>       </map:match>
> 
> this way it works. But how can I also use the request 
> parameter (having something like www.mysite.com?results=5 
> work)? I remember that for transformers you could use
> 
> <map parameter name=use-request-parameter value="true"/>
> 
>  but this doesn't work if I put it between the <map generate> 
> tags. So how can this be done?10x in advance
> 
> 
> 
> 
>       
> ______________________________________________________________
> _____________________
> You snooze, you lose. Get messages ASAP with AutoCheck in the 
> all-new Yahoo! Mail Beta.
> http://advision.webevents.yahoo.com/mailbeta/newmail_html.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

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


Mime
View raw message