cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Passing request params to a flowscript thru a resource?
Date Wed, 03 Dec 2003 02:30:56 GMT
Geoff Howard wrote:

> Stephan Coboos wrote:
>
>> Hello,
>>
>> because I've got no answer for my question postet in the users list 
>> before, I will try it on the dev list...
>>
>> I have the following sitemap fragment:
>>
>> ...
>> <map:resources>
>>  <map:resource name="main">
>>     <map:call function="main"/>
>>  </map:resource>
>> </map:resources>
>>
>> <map:flow language="javascript">
>> <map:script src="flows/myScript.js"/>
>> </map:flow>
>>
>> <map:pipelines>
>>  <map:pipeline>
>>     <map:match pattern="">
>>        <map:call resource="main"/>
>>     </map:match>
>>  </map:pipeline>
>> </map:pipelines>
>> ...
>>
>> In the match section I'm calling the resource 'main' which is calling 
>> a flowscript function itself. But if I do that this way I don't have 
>> access to the request params in the flowscript because 
>> cocoon.request... returns nothing! How do I activate passing request 
>> parameters thru resources to a flowscript?
>
>
> Can you explain why you would need to do this?  The example you've 
> given above is pointless AFAICS.


But syntax is valid (unless there is an error in myScript.js) -- which 
means it should work. And if it is genuine bug it should be filed and 
(eventually) fixed.

Vadim



Mime
View raw message