You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/03/18 17:13:46 UTC
action in a pipeline
I wrote that this match:
<map:match pattern="save/*">
<map:act type="Save">
<map:parameter name="save" value="{1}"/>
</map:act>
</map:match>
Cocoon didn't find the resource. Is it illegal to write that ?
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: action in a pipeline
Posted by Lionel Crine <cr...@4dconcept.fr>.
I found an answer to this problem.
I can't write a pipeline with only one action.
A pipeline should have one generator and one serialize at least.
At 14:26 18/03/2003 -0800, you wrote:
>I am assuming you want the value of "save" to equal "foobar" in the case
>where the URI is "save/foobar". Try using {../1} instead. Since actions
>add their own parameters to the sitemap you need to tell Cocoon to get the
>parameter from the match.
>
>Lionel Crine wrote:
>
>>I wrote that this match:
>>
>> <map:match pattern="save/*">
>> <map:act type="Save">
>> <map:parameter name="save" value="{1}"/>
>> </map:act>
>> </map:match>
>>
>>
>>Cocoon didn't find the resource. Is it illegal to write that ?
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: action in a pipeline
Posted by Jeff Turner <je...@apache.org>.
On Tue, Mar 18, 2003 at 05:13:46PM +0100, Lionel Crine wrote:
> I wrote that this match:
>
> <map:match pattern="save/*">
> <map:act type="Save">
> <map:parameter name="save" value="{1}"/>
> </map:act>
> </map:match>
Can't see anything wrong with that. I assume you have a <map:action>
definition for 'Save' somewhere in the sitemap too. Check the logs for
errors..
--Jeff
> Cocoon didn't find the resource. Is it illegal to write that ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: action in a pipeline
Posted by Jeremy Michael Crosbie <jc...@dslextreme.com>.
I am assuming you want the value of "save" to equal "foobar" in the case
where the URI is "save/foobar". Try using {../1} instead. Since actions
add their own parameters to the sitemap you need to tell Cocoon to get
the parameter from the match.
Lionel Crine wrote:
> I wrote that this match:
>
> <map:match pattern="save/*">
> <map:act type="Save">
> <map:parameter name="save" value="{1}"/>
> </map:act>
> </map:match>
>
>
> Cocoon didn't find the resource. Is it illegal to write that ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org